|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpolyglot.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 Copypublic TypeSystem typeSystem()
TypeObject
typeSystem in interface TypeObjectpublic Position position()
TypeObject
position in interface TypeObjectpublic final boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equalsImpl(TypeObject t)
equalsImpl in interface TypeObjectequalsImpl(TypeObject),
Object.hashCode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||