polyglot.types
Class FieldInstance_c
java.lang.Object
polyglot.types.TypeObject_c
polyglot.types.VarInstance_c
polyglot.types.FieldInstance_c
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Declaration, FieldInstance, MemberInstance, TypeObject, VarInstance, Copy
public class FieldInstance_c
- extends VarInstance_c
- implements FieldInstance
A FieldInstance
contains type information for a field.
- See Also:
- Serialized Form
Methods inherited from class polyglot.types.VarInstance_c |
constantValue, constantValueSet, declaration, flags, hashCode, name, setConstantValue, setDeclaration, setFlags, setName, setNotConstant, setType, type |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
container
protected ReferenceType container
FieldInstance_c
protected FieldInstance_c()
- Used for deserializing types.
FieldInstance_c
public FieldInstance_c(TypeSystem ts,
Position pos,
ReferenceType container,
Flags flags,
Type type,
java.lang.String name)
orig
public FieldInstance orig()
- Specified by:
orig
in interface FieldInstance
flags
public FieldInstance flags(Flags flags)
- Specified by:
flags
in interface FieldInstance
name
public FieldInstance name(java.lang.String name)
- Specified by:
name
in interface FieldInstance
type
public FieldInstance type(Type type)
- Specified by:
type
in interface FieldInstance
container
public FieldInstance container(ReferenceType container)
- Specified by:
container
in interface FieldInstance
constantValue
public FieldInstance constantValue(java.lang.Object constantValue)
- Specified by:
constantValue
in interface FieldInstance
notConstant
public FieldInstance notConstant()
- Specified by:
notConstant
in interface FieldInstance
container
public ReferenceType container()
- Description copied from interface:
MemberInstance
- Return the member's containing type.
- Specified by:
container
in interface MemberInstance
isConstant
public boolean isConstant()
- Description copied from interface:
VarInstance
- Whether the variable has a constant value.
- Specified by:
isConstant
in interface VarInstance
- Overrides:
isConstant
in class VarInstance_c
setContainer
public void setContainer(ReferenceType container)
- Description copied from interface:
MemberInstance
- Destructively set the member's container.
- Specified by:
setContainer
in interface MemberInstance
- Parameters:
container
- The container to set.
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