|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.norecess.citkit.tir.lvalues.FieldLValueTIR
public class FieldLValueTIR
The AST for a field variable of a record.
Constructor Summary | |
---|---|
FieldLValueTIR(IPosition position,
LValueTIR variable,
java.lang.String field)
Constructs a field variable reference. |
|
FieldLValueTIR(LValueTIR variable,
java.lang.String field)
Basic constructor. |
Method Summary | ||
---|---|---|
|
accept(LValueTIRVisitor<T> visitor)
Implements the visitor pattern with LValueTIRVisitor . |
|
boolean |
equals(java.lang.Object o)
|
|
java.lang.String |
getField()
Returns the name of the field. |
|
IPosition |
getPosition()
Returns the location of the l-value in the code. |
|
HobbesType |
getType()
Returns the type of the l-value. |
|
LValueTIR |
getVariable()
Returns the variable being dereferenced. |
|
int |
hashCode()
|
|
void |
setType(HobbesType type)
Sets the type of the l-value. |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FieldLValueTIR(IPosition position, LValueTIR variable, java.lang.String field)
position
- the position of the field variable in the source code.variable
- the variable being dereferenced.field
- the name of the field.public FieldLValueTIR(LValueTIR variable, java.lang.String field)
variable
- the variable that evaluates to a record.field
- the field of the record to reference.Method Detail |
---|
public java.lang.String getField()
getField
in interface IFieldValueTIR
public LValueTIR getVariable()
getVariable
in interface IFieldValueTIR
public <T> T accept(LValueTIRVisitor<T> visitor)
LValueTIR
LValueTIRVisitor
.
accept
in interface LValueTIR
T
- the return type from the visit with the visitor.visitor
- the visitor itself.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public HobbesType getType()
LValueTIR
getType
in interface LValueTIR
public void setType(HobbesType type)
LValueTIR
setType
in interface LValueTIR
type
- the type of the l-value.public IPosition getPosition()
LValueTIR
getPosition
in interface HobbesTIR
getPosition
in interface LValueTIR
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |