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

Field Summary
protected  java.lang.Object constantValue
           
protected  Flags flags
           
protected  java.lang.String name
           
protected  Type type
           
 
Fields inherited from class jltools.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()
           
 boolean equals(java.lang.Object o)
           
 Flags flags()
           
 int hashCode()
           
 boolean isCanonical()
           
 boolean isConstant()
           
 java.lang.String name()
           
 Type type()
           
 
Methods inherited from class jltools.ext.jl.types.TypeObject_c
copy, position, restore_, restore, typeSystem
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jltools.types.VarInstance
setType
 
Methods inherited from interface jltools.types.TypeObject
position, restore, typeSystem
 
Methods inherited from interface jltools.util.Copy
copy
 

Field Detail

flags

protected Flags flags

type

protected Type type

name

protected java.lang.String name

constantValue

protected java.lang.Object constantValue
Constructor Detail

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)
Method Detail

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