|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norecess.citkit.tir.expressions.AssignmentETIR
public class AssignmentETIR
The TIR for an assignment expression.
| Constructor Summary | |
|---|---|
AssignmentETIR(IPosition position,
LValueTIR lvalue,
ExpressionTIR expression)
Creates an assignment expression. |
|
AssignmentETIR(LValueTIR lvalue,
ExpressionTIR expression)
Basic constructor. |
|
| Method Summary | ||
|---|---|---|
|
accept(ExpressionTIRVisitor<T> visitor)
Implements the visitor pattern with ExpressionTIRVisitor. |
|
boolean |
equals(java.lang.Object o)
|
|
ExpressionTIR |
getExpression()
Returns the expression of the assignment expression. |
|
LValueTIR |
getLValue()
Returns the variable of the assignment expression. |
|
IPosition |
getPosition()
Retrieves the position of the code that generated the TIR. |
|
HobbesType |
getType()
Retrieves the type of the expression. |
|
int |
hashCode()
|
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AssignmentETIR(IPosition position,
LValueTIR lvalue,
ExpressionTIR expression)
position - the position of the expression in the souce code.lvalue - the variable assigned to.expression - the expression to evaluate.
public AssignmentETIR(LValueTIR lvalue,
ExpressionTIR expression)
lvalue - the variable on the left.expression - the expression on the right.| Method Detail |
|---|
public HobbesType getType()
ExpressionTIR
getType in interface ExpressionTIRpublic ExpressionTIR getExpression()
getExpression in interface IAssignmentETIRpublic LValueTIR getLValue()
getLValue in interface IAssignmentETIRpublic <T> T accept(ExpressionTIRVisitor<T> visitor)
ExpressionTIRExpressionTIRVisitor.
accept in interface ExpressionTIRvisitor - the visitor object.
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 IPosition getPosition()
getPosition in interface HobbesTIR
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||