polyglot.types
Class LocalInstance_c
java.lang.Object
polyglot.types.TypeObject_c
polyglot.types.VarInstance_c
polyglot.types.LocalInstance_c
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Declaration, LocalInstance, TypeObject, VarInstance, Copy
public class LocalInstance_c
- extends VarInstance_c
- implements LocalInstance
A LocalInstance
contains type information for a local variable.
- See Also:
- Serialized Form
Methods inherited from class polyglot.types.VarInstance_c |
constantValue, constantValueSet, declaration, flags, hashCode, isConstant, name, setConstantValue, setDeclaration, setFlags, setName, setNotConstant, setType, type |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface polyglot.types.VarInstance |
constantValue, constantValueSet, flags, isConstant, name, setConstantValue, setFlags, setName, setNotConstant, setType, type |
LocalInstance_c
protected LocalInstance_c()
- Used for deserializing types.
LocalInstance_c
public LocalInstance_c(TypeSystem ts,
Position pos,
Flags flags,
Type type,
java.lang.String name)
orig
public LocalInstance orig()
- Specified by:
orig
in interface LocalInstance
equalsImpl
public boolean equalsImpl(TypeObject o)
- Description copied from class:
TypeObject_c
- Default implementation is pointer equality.
- Specified by:
equalsImpl
in interface TypeObject
- Overrides:
equalsImpl
in class VarInstance_c
- See Also:
TypeObject_c.equalsImpl(TypeObject)
,
Object.hashCode()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isCanonical
public boolean isCanonical()
- Description copied from interface:
TypeObject
- Return true if the type object contains no unknown/ambiguous types.
- Specified by:
isCanonical
in interface TypeObject
- Overrides:
isCanonical
in class VarInstance_c
flags
public LocalInstance flags(Flags flags)
- Specified by:
flags
in interface LocalInstance
name
public LocalInstance name(java.lang.String name)
- Specified by:
name
in interface LocalInstance
type
public LocalInstance type(Type type)
- Specified by:
type
in interface LocalInstance
constantValue
public LocalInstance constantValue(java.lang.Object constantValue)
- Specified by:
constantValue
in interface LocalInstance
notConstant
public LocalInstance notConstant()
- Specified by:
notConstant
in interface LocalInstance