|
||||||||||
| 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 IFieldValueTIRpublic LValueTIR getVariable()
getVariable in interface IFieldValueTIRpublic <T> T accept(LValueTIRVisitor<T> visitor)
LValueTIRLValueTIRVisitor.
accept in interface LValueTIRT - 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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic HobbesType getType()
LValueTIR
getType in interface LValueTIRpublic void setType(HobbesType type)
LValueTIR
setType in interface LValueTIRtype - the type of the l-value.public IPosition getPosition()
LValueTIR
getPosition in interface HobbesTIRgetPosition in interface LValueTIR
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||