polyglot.types
Class LocalInstance_c

java.lang.Object
  extended by polyglot.types.TypeObject_c
      extended by polyglot.types.VarInstance_c
          extended by 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

Field Summary
 
Fields inherited from class polyglot.types.VarInstance_c
constantValue, constantValueSet, decl, flags, isConstant, name, type
 
Fields inherited from class polyglot.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)
           
 boolean equalsImpl(TypeObject o)
          Default implementation is pointer equality.
 LocalInstance flags(Flags flags)
           
 boolean isCanonical()
          Return true if the type object contains no unknown/ambiguous types.
 LocalInstance name(java.lang.String name)
           
 LocalInstance notConstant()
           
 LocalInstance orig()
           
 java.lang.String toString()
           
 LocalInstance type(Type type)
           
 
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 polyglot.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, constantValueSet, flags, isConstant, name, setConstantValue, setFlags, setName, setNotConstant, setType, type
 
Methods inherited from interface polyglot.types.Declaration
declaration, setDeclaration
 

Constructor Detail

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

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