|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpolyglot.ext.jl.types.TypeObject_c
polyglot.ext.jl.types.VarInstance_c
polyglot.ext.jl.types.FieldInstance_c
A FieldInstance contains type information for a field.
| Field Summary | |
protected ReferenceType |
container
|
| Fields inherited from class polyglot.ext.jl.types.VarInstance_c |
constantValue, flags, isConstant, name, type |
| Fields inherited from class polyglot.ext.jl.types.TypeObject_c |
position, ts |
| Constructor Summary | |
protected |
FieldInstance_c()
Used for deserializing types. |
|
FieldInstance_c(TypeSystem ts,
Position pos,
ReferenceType container,
Flags flags,
Type type,
java.lang.String name)
|
| Method Summary | |
FieldInstance |
constantValue(java.lang.Object constantValue)
Non-destructive update of constant value. |
ReferenceType |
container()
Return the member's containing type. |
FieldInstance |
container(ReferenceType container)
Set the containing class of the field. |
boolean |
equalsImpl(TypeObject o)
Return true iff this type object is the same as t. |
FieldInstance |
flags(Flags flags)
Set the flags of the field. |
boolean |
isCanonical()
Return true if the type object contains no unknown/ambiguous types. |
FieldInstance |
name(java.lang.String name)
Set the name of the field. |
void |
setConstantValue(java.lang.Object constantValue)
Destructive update of constant value. |
void |
setType(Type type)
Destructively set the type of the variable. |
java.lang.String |
toString()
|
FieldInstance |
type(Type type)
Set the type of the field. |
| Methods inherited from class polyglot.ext.jl.types.VarInstance_c |
constantValue, flags, hashCode, isConstant, name, type |
| 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, wait, wait, wait |
| Methods inherited from interface polyglot.types.VarInstance |
constantValue, flags, isConstant, name, type |
| Methods inherited from interface polyglot.types.TypeObject |
position, typeSystem |
| Methods inherited from interface polyglot.util.Copy |
copy |
| Methods inherited from interface polyglot.types.MemberInstance |
flags |
| Field Detail |
protected ReferenceType container
| Constructor Detail |
protected FieldInstance_c()
public FieldInstance_c(TypeSystem ts,
Position pos,
ReferenceType container,
Flags flags,
Type type,
java.lang.String name)
| Method Detail |
public ReferenceType container()
MemberInstance
container in interface MemberInstancepublic void setConstantValue(java.lang.Object constantValue)
setConstantValue in interface FieldInstanceconstantValue - the constant value. Should be an instance of String,
Boolean, Byte, Short, Character, Integer, Long, Float, Double, or null.public FieldInstance constantValue(java.lang.Object constantValue)
constantValue in interface FieldInstanceconstantValue - the constant value. Should be an instance of String,
Boolean, Byte, Short, Character, Integer, Long, Float, Double, or null.public FieldInstance container(ReferenceType container)
FieldInstance
container in interface FieldInstancepublic FieldInstance flags(Flags flags)
FieldInstance
flags in interface FieldInstancepublic FieldInstance name(java.lang.String name)
FieldInstance
name in interface FieldInstancepublic FieldInstance type(Type type)
FieldInstance
type in interface FieldInstancepublic void setType(Type type)
VarInstance
setType in interface VarInstancepublic boolean equalsImpl(TypeObject o)
TypeObjectt.
All Polyglot extensions should attempt to maintain pointer
equality between TypeObjects. If this cannot be done,
extensions can override TypeObject_c.equalsImpl(), and
don't forget to override hashCode().
equalsImpl in interface TypeObjectequalsImpl in class VarInstance_cpublic java.lang.String toString()
public boolean isCanonical()
TypeObject
isCanonical in interface TypeObjectisCanonical in class VarInstance_c
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||