public class JifFieldInstance_c extends polyglot.types.FieldInstance_c implements JifFieldInstance
JifFieldInstance
interface.Modifier and Type | Field and Description |
---|---|
protected boolean |
hasInitializer |
protected Param |
initializer |
protected Label |
label |
Constructor and Description |
---|
JifFieldInstance_c(JifTypeSystem ts,
polyglot.util.Position pos,
polyglot.types.ReferenceType container,
polyglot.types.Flags flags,
polyglot.types.Type type,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
constantValue() |
polyglot.types.FieldInstance |
constantValue(java.lang.Object constantValue) |
boolean |
constantValueSet() |
boolean |
equalsImpl(polyglot.types.TypeObject o) |
boolean |
hasInitializer() |
Param |
initializer() |
boolean |
isConstant() |
Label |
label() |
polyglot.types.FieldInstance |
notConstant() |
ProviderLabel |
provider() |
void |
setConstantValue(java.lang.Object constantValue) |
void |
setHasInitializer(boolean hasInitializer) |
void |
setInitializer(Param init) |
void |
setLabel(Label label) |
void |
subst(VarMap bounds) |
java.lang.String |
toString() |
container, container, flags, isCanonical, name, orig, setContainer, type
declaration, flags, hashCode, name, setDeclaration, setFlags, setName, setNotConstant, setType, type
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
container, flags, setContainer, setFlags
protected Label label
protected boolean hasInitializer
protected Param initializer
public JifFieldInstance_c(JifTypeSystem ts, polyglot.util.Position pos, polyglot.types.ReferenceType container, polyglot.types.Flags flags, polyglot.types.Type type, java.lang.String name)
public boolean equalsImpl(polyglot.types.TypeObject o)
equalsImpl
in interface polyglot.types.TypeObject
equalsImpl
in class polyglot.types.FieldInstance_c
public void subst(VarMap bounds)
subst
in interface JifVarInstance
public Label label()
label
in interface JifVarInstance
public void setLabel(Label label)
setLabel
in interface JifVarInstance
public ProviderLabel provider()
provider
in interface JifFieldInstance
public boolean hasInitializer()
hasInitializer
in interface JifFieldInstance
public void setHasInitializer(boolean hasInitializer)
setHasInitializer
in interface JifFieldInstance
public Param initializer()
initializer
in interface JifFieldInstance
public void setInitializer(Param init)
setInitializer
in interface JifFieldInstance
public boolean isConstant()
isConstant
in interface polyglot.types.VarInstance
isConstant
in class polyglot.types.FieldInstance_c
public java.lang.Object constantValue()
constantValue
in interface polyglot.types.VarInstance
constantValue
in class polyglot.types.VarInstance_c
public boolean constantValueSet()
constantValueSet
in interface polyglot.types.VarInstance
constantValueSet
in class polyglot.types.VarInstance_c
public polyglot.types.FieldInstance constantValue(java.lang.Object constantValue)
constantValue
in interface polyglot.types.FieldInstance
constantValue
in class polyglot.types.FieldInstance_c
public polyglot.types.FieldInstance notConstant()
notConstant
in interface polyglot.types.FieldInstance
notConstant
in class polyglot.types.FieldInstance_c
public void setConstantValue(java.lang.Object constantValue)
setConstantValue
in interface polyglot.types.VarInstance
setConstantValue
in class polyglot.types.VarInstance_c
public java.lang.String toString()
toString
in class polyglot.types.FieldInstance_c