|
|||||||||
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 polyglot.ext.jl.types.VarInstance_c polyglot.ext.jl.types.LocalInstance_c
public class 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)
Default implementation is pointer equality. |
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 LocalInstance
public LocalInstance constantValue(java.lang.Object constantValue)
LocalInstance
constantValue
in interface LocalInstance
public LocalInstance flags(Flags flags)
LocalInstance
flags
in interface LocalInstance
public LocalInstance name(java.lang.String name)
LocalInstance
name
in interface LocalInstance
public LocalInstance type(Type type)
LocalInstance
type
in interface LocalInstance
public boolean equalsImpl(TypeObject o)
TypeObject_c
equalsImpl
in interface TypeObject
equalsImpl
in class VarInstance_c
TypeObject_c.equalsImpl(TypeObject)
,
Object.hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isCanonical()
TypeObject
isCanonical
in interface TypeObject
isCanonical
in class VarInstance_c
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |