|
|||||||||
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
public abstract class VarInstance_c
A VarInstance
contains type information for a variable. It may
be either a local or a field.
Field Summary | |
---|---|
protected java.lang.Object |
constantValue
|
protected Flags |
flags
|
protected boolean |
isConstant
|
protected java.lang.String |
name
|
protected Type |
type
|
Fields inherited from class polyglot.ext.jl.types.TypeObject_c |
---|
position, ts |
Constructor Summary | |
---|---|
protected |
VarInstance_c()
Used for deserializing types. |
|
VarInstance_c(TypeSystem ts,
Position pos,
Flags flags,
Type type,
java.lang.String name)
|
Method Summary | |
---|---|
java.lang.Object |
constantValue()
The variable's constant value, or null. |
boolean |
equalsImpl(TypeObject o)
Default implementation is pointer equality. |
Flags |
flags()
The flags of the variable. |
int |
hashCode()
|
boolean |
isCanonical()
Return true if the type object contains no unknown/ambiguous types. |
boolean |
isConstant()
Whether the variable has a constant value. |
java.lang.String |
name()
The name of the variable. |
void |
setFlags(Flags flags)
Destructively set the flags of the variable. |
void |
setType(Type type)
Destructively set the type of the variable. |
Type |
type()
The type of the variable. |
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, toString, wait, wait, wait |
Methods inherited from interface polyglot.types.TypeObject |
---|
position, typeSystem |
Methods inherited from interface polyglot.util.Copy |
---|
copy |
Field Detail |
---|
protected Flags flags
protected Type type
protected java.lang.String name
protected java.lang.Object constantValue
protected boolean isConstant
Constructor Detail |
---|
protected VarInstance_c()
public VarInstance_c(TypeSystem ts, Position pos, Flags flags, Type type, java.lang.String name)
Method Detail |
---|
public boolean isConstant()
VarInstance
isConstant
in interface VarInstance
public java.lang.Object constantValue()
VarInstance
constantValue
in interface VarInstance
public Flags flags()
VarInstance
flags
in interface VarInstance
public Type type()
VarInstance
type
in interface VarInstance
public java.lang.String name()
VarInstance
name
in interface VarInstance
public int hashCode()
hashCode
in class TypeObject_c
public boolean equalsImpl(TypeObject o)
TypeObject_c
equalsImpl
in interface TypeObject
equalsImpl
in class TypeObject_c
TypeObject_c.equalsImpl(TypeObject)
,
Object.hashCode()
public boolean isCanonical()
TypeObject
isCanonical
in interface TypeObject
public void setType(Type type)
VarInstance
setType
in interface VarInstance
public void setFlags(Flags flags)
VarInstance
setFlags
in interface VarInstance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |