jltools.ext.jl.types
Class VarInstance_c
java.lang.Object
|
+--jltools.ext.jl.types.TypeObject_c
|
+--jltools.ext.jl.types.VarInstance_c
- All Implemented Interfaces:
- java.lang.Cloneable, Copy, java.io.Serializable, TypeObject, VarInstance
- Direct Known Subclasses:
- FieldInstance_c, LocalInstance_c, ParamInstance_c, PrincipalInstance_c
- public abstract class VarInstance_c
- extends TypeObject_c
- implements VarInstance
A VarInstance
contains type information for a variable. It may
be either a local or a field.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jltools.util.Copy |
copy |
flags
protected Flags flags
type
protected Type type
name
protected java.lang.String name
constantValue
protected java.lang.Object constantValue
VarInstance_c
protected VarInstance_c()
- Used for deserializing types.
VarInstance_c
public VarInstance_c(TypeSystem ts,
Position pos,
Flags flags,
Type type,
java.lang.String name)
isConstant
public boolean isConstant()
- Specified by:
isConstant
in interface VarInstance
constantValue
public java.lang.Object constantValue()
- Specified by:
constantValue
in interface VarInstance
flags
public Flags flags()
- Specified by:
flags
in interface VarInstance
type
public Type type()
- Specified by:
type
in interface VarInstance
name
public java.lang.String name()
- Specified by:
name
in interface VarInstance
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
isCanonical
public boolean isCanonical()
- Specified by:
isCanonical
in interface TypeObject