polyglot.types
Interface FieldInstance

All Superinterfaces:
java.lang.Cloneable, Copy, MemberInstance, java.io.Serializable, TypeObject, VarInstance
All Known Implementing Classes:
FieldInstance_c

public interface FieldInstance
extends VarInstance, MemberInstance

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

flags

public FieldInstance flags(Flags flags)
Set the flags of the field.


name

public FieldInstance name(java.lang.String name)
Set the name of the field.


type

public FieldInstance type(Type type)
Set the type of the field.


container

public FieldInstance container(ReferenceType container)
Set the containing class of the field.


constantValue

public FieldInstance constantValue(java.lang.Object value)
Set the constant value of the field.

Parameters:
value - the constant value. Should be an instance of String, Boolean, Byte, Short, Character, Integer, Long, Float, Double, or null.

setConstantValue

public void setConstantValue(java.lang.Object value)
Destructively set the constant value of the field.

Parameters:
value - the constant value. Should be an instance of String, Boolean, Byte, Short, Character, Integer, Long, Float, Double, or null.