public class InstanceField extends NonStatement implements ILeftExpression
This AST element represents a non-static field variable.
It should not be confused with Field
definition objects.
StaticField
Modifier and Type | Method and Description |
---|---|
static InstanceField |
build(IExpression instance,
Field field)
Create a new instance field object.
|
Field |
getField()
Get the field definition object.
|
IExpression |
getInstance()
Get the instance expression, which is the object that contains the field.
|
void |
setField(Field field)
Set the field.
|
void |
setInstance(IExpression instance)
Set the instance.
|
attachTag, getSubElements, replaceSubElement, retrieveTag
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attachTag, getSubElements, replaceSubElement, retrieveTag
public static InstanceField build(IExpression instance, Field field)
Create a new instance field object.
instance
- mandatory instance expressionfield
- mandatory non-static fieldpublic IExpression getInstance()
Get the instance expression, which is the object that contains the field.
public Field getField()
Get the field definition object.
public void setInstance(IExpression instance)
Set the instance.
instance
- mandatory instancepublic void setField(Field field)
Set the field.
field
- mandatory non-static field