public class FieldInstance_c extends VarInstance_c implements FieldInstance
FieldInstance
contains type information for a field.Modifier and Type | Field and Description |
---|---|
protected ReferenceType |
container |
constantValue, constantValueSet, decl, flags, isConstant, name, type
position, ts
Modifier | Constructor and Description |
---|---|
protected |
FieldInstance_c()
Used for deserializing types.
|
|
FieldInstance_c(TypeSystem ts,
Position pos,
ReferenceType container,
Flags flags,
Type type,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
FieldInstance |
constantValue(java.lang.Object constantValue) |
ReferenceType |
container()
Return the member's containing type.
|
FieldInstance |
container(ReferenceType container) |
boolean |
equalsImpl(TypeObject o)
Default implementation is pointer equality.
|
FieldInstance |
flags(Flags flags) |
boolean |
isCanonical()
Return true if the type object contains no unknown/ambiguous types.
|
boolean |
isConstant()
Whether the variable has a constant value.
|
FieldInstance |
name(java.lang.String name) |
FieldInstance |
notConstant() |
FieldInstance |
orig() |
void |
setContainer(ReferenceType container)
Destructively set the member's container.
|
java.lang.String |
toString() |
FieldInstance |
type(Type type) |
constantValue, constantValueSet, declaration, flags, hashCode, name, setConstantValue, setDeclaration, setFlags, setName, setNotConstant, setType, type
copy, equals, position, typeSystem
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
constantValue, constantValueSet, flags, name, setConstantValue, setFlags, setName, setNotConstant, setType, type
declaration, setDeclaration
position, typeSystem
flags, setFlags
protected ReferenceType container
protected FieldInstance_c()
public FieldInstance_c(TypeSystem ts, Position pos, ReferenceType container, Flags flags, Type type, java.lang.String name)
public FieldInstance orig()
orig
in interface FieldInstance
public FieldInstance flags(Flags flags)
flags
in interface FieldInstance
public FieldInstance name(java.lang.String name)
name
in interface FieldInstance
public FieldInstance type(Type type)
type
in interface FieldInstance
public FieldInstance container(ReferenceType container)
container
in interface FieldInstance
public FieldInstance constantValue(java.lang.Object constantValue)
constantValue
in interface FieldInstance
public FieldInstance notConstant()
notConstant
in interface FieldInstance
public ReferenceType container()
MemberInstance
container
in interface MemberInstance
public boolean isConstant()
VarInstance
isConstant
in interface VarInstance
isConstant
in class VarInstance_c
public void setContainer(ReferenceType container)
MemberInstance
setContainer
in interface MemberInstance
container
- the container to setpublic boolean equalsImpl(TypeObject o)
TypeObject_c
equalsImpl
in interface TypeObject
equalsImpl
in class VarInstance_c
TypeObject_c.equalsImpl(TypeObject)
,
Object.hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isCanonical()
TypeObject
isCanonical
in interface TypeObject
isCanonical
in class VarInstance_c