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, setFlags, 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
 
Methods inherited from interface polyglot.types.TypeObject
equalsImpl, isCanonical, position, typeSystem
 
Methods inherited from interface polyglot.util.Copy
copy
 

Method Detail

flags

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


name

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


type

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


container

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


constantValue

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

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.