|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object polyglot.ext.jl.types.TypeObject_c
public abstract class TypeObject_c
Abstract implementation of a type object. Contains a reference to the type system and to the object's position in the code.
Field Summary | |
---|---|
protected Position |
position
|
protected TypeSystem |
ts
|
Constructor Summary | |
---|---|
protected |
TypeObject_c()
Used for deserializing types. |
|
TypeObject_c(TypeSystem ts)
Creates a new type in the given a TypeSystem. |
|
TypeObject_c(TypeSystem ts,
Position pos)
|
Method Summary | |
---|---|
java.lang.Object |
copy()
|
boolean |
equals(java.lang.Object o)
Return whether o equals this. |
boolean |
equalsImpl(TypeObject t)
Default implementation is pointer equality. |
int |
hashCode()
|
Position |
position()
The object's position, or null. |
TypeSystem |
typeSystem()
The object's type system. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface polyglot.types.TypeObject |
---|
isCanonical |
Field Detail |
---|
protected transient TypeSystem ts
protected Position position
Constructor Detail |
---|
protected TypeObject_c()
public TypeObject_c(TypeSystem ts)
public TypeObject_c(TypeSystem ts, Position pos)
Method Detail |
---|
public java.lang.Object copy()
copy
in interface Copy
public TypeSystem typeSystem()
TypeObject
typeSystem
in interface TypeObject
public Position position()
TypeObject
position
in interface TypeObject
public final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equalsImpl(TypeObject t)
equalsImpl
in interface TypeObject
equalsImpl(TypeObject)
,
Object.hashCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |