|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norecess.citkit.tir.expressions.FieldAssignmentTIR
public class FieldAssignmentTIR
The TIR for initializating a field in a record.. This is needed in the
RecordETIR class.
| Constructor Summary | |
|---|---|
FieldAssignmentTIR(IPosition position,
java.lang.String name,
ExpressionTIR init)
Constructs a field initialization for a RecordETIR. |
|
FieldAssignmentTIR(java.lang.String name,
ExpressionTIR init)
Basic constructor. |
|
| Method Summary | ||
|---|---|---|
|
accept(ExpressionTIRVisitor<T> visitor)
Implements the visitor pattern with ExpressionTIRVisitor. |
|
boolean |
equals(java.lang.Object o)
|
|
ExpressionTIR |
getInit()
Returns the initialization expression for the field. |
|
java.lang.String |
getName()
Returns the name of the field. |
|
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 FieldAssignmentTIR(IPosition position,
java.lang.String name,
ExpressionTIR init)
RecordETIR.
position - the position of the field initialization in the source code.name - the name of the field.init - the initializing expression.
public FieldAssignmentTIR(java.lang.String name,
ExpressionTIR init)
name - the name of the field.init - the initialization expression of the field.| Method Detail |
|---|
public ExpressionTIR getInit()
getInit in interface IFieldAssignmentTIRpublic java.lang.String getName()
getName in interface IFieldAssignmentTIRpublic HobbesType getType()
ExpressionTIR
getType in interface ExpressionTIRpublic <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 | |||||||||