|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A FieldInstance
contains type information for a field.
Method Summary | |
FieldInstance |
constantValue(java.lang.Object value)
Set the constant value of the field. |
FieldInstance |
container(ReferenceType container)
Set the containing class of the field. |
FieldInstance |
flags(Flags flags)
Set the flags of the field. |
FieldInstance |
name(java.lang.String name)
Set the name of the field. |
void |
setConstantValue(java.lang.Object value)
Destructively set the constant value of the field. |
FieldInstance |
type(Type type)
Set the type of the field. |
Methods inherited from interface polyglot.types.VarInstance |
constantValue, flags, isConstant, name, setType, type |
Methods inherited from interface polyglot.types.TypeObject |
equalsImpl, isCanonical, position, typeSystem |
Methods inherited from interface polyglot.util.Copy |
copy |
Methods inherited from interface polyglot.types.MemberInstance |
container, flags |
Method Detail |
public FieldInstance flags(Flags flags)
public FieldInstance name(java.lang.String name)
public FieldInstance type(Type type)
public FieldInstance container(ReferenceType container)
public FieldInstance constantValue(java.lang.Object value)
value
- the constant value. Should be an instance of String,
Boolean, Byte, Short, Character, Integer, Long, Float, Double, or null.public void setConstantValue(java.lang.Object value)
value
- the constant value. Should be an instance of String,
Boolean, Byte, Short, Character, Integer, Long, Float, Double, or null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |