|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpolyglot.ext.jl.types.TypeObject_c
polyglot.ext.jl.types.VarInstance_c
polyglot.ext.jl.types.LocalInstance_c
A LocalInstance contains type information for a local variable.
| Field Summary |
| Fields inherited from class polyglot.ext.jl.types.VarInstance_c |
constantValue, flags, isConstant, name, type |
| Fields inherited from class polyglot.ext.jl.types.TypeObject_c |
position, ts |
| Constructor Summary | |
protected |
LocalInstance_c()
Used for deserializing types. |
|
LocalInstance_c(TypeSystem ts,
Position pos,
Flags flags,
Type type,
java.lang.String name)
|
| Method Summary | |
LocalInstance |
constantValue(java.lang.Object constantValue)
Set the local's constant value. |
boolean |
equalsImpl(TypeObject o)
Return true iff this type object is the same as t. |
LocalInstance |
flags(Flags flags)
Set the local's flags. |
boolean |
isCanonical()
Return true if the type object contains no unknown/ambiguous types. |
LocalInstance |
name(java.lang.String name)
Set the local's name. |
void |
setConstantValue(java.lang.Object constantValue)
Destructively set the local's constant value. |
java.lang.String |
toString()
|
LocalInstance |
type(Type type)
Set the local's type. |
| Methods inherited from class polyglot.ext.jl.types.VarInstance_c |
constantValue, flags, hashCode, isConstant, name, setFlags, setType, type |
| Methods inherited from class polyglot.ext.jl.types.TypeObject_c |
copy, equals, position, typeSystem |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface polyglot.types.VarInstance |
constantValue, flags, isConstant, name, setFlags, setType, type |
| Methods inherited from interface polyglot.types.TypeObject |
position, typeSystem |
| Methods inherited from interface polyglot.util.Copy |
copy |
| Constructor Detail |
protected LocalInstance_c()
public LocalInstance_c(TypeSystem ts,
Position pos,
Flags flags,
Type type,
java.lang.String name)
| Method Detail |
public void setConstantValue(java.lang.Object constantValue)
LocalInstance
setConstantValue in interface LocalInstancepublic LocalInstance constantValue(java.lang.Object constantValue)
LocalInstance
constantValue in interface LocalInstancepublic LocalInstance flags(Flags flags)
LocalInstance
flags in interface LocalInstancepublic LocalInstance name(java.lang.String name)
LocalInstance
name in interface LocalInstancepublic LocalInstance type(Type type)
LocalInstance
type in interface LocalInstancepublic boolean equalsImpl(TypeObject o)
TypeObjectt.
All Polyglot extensions should attempt to maintain pointer
equality between TypeObjects. If this cannot be done,
extensions can override TypeObject_c.equalsImpl(), and
don't forget to override hashCode().
equalsImpl in interface TypeObjectequalsImpl in class VarInstance_cpublic java.lang.String toString()
public boolean isCanonical()
TypeObject
isCanonical in interface TypeObjectisCanonical in class VarInstance_c
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||