|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norecess.citkit.tir.expressions.RecordETIR
public class RecordETIR
The TIR for an expression that creates (i.e., allocates) a new record object.
Constructor Summary | |
---|---|
RecordETIR(IPosition position,
java.lang.String type,
java.util.List<FieldAssignmentTIR> fieldExps)
Constructs a record expression. |
|
RecordETIR(java.lang.String type,
java.util.List<FieldAssignmentTIR> fieldExps)
|
Method Summary | ||
---|---|---|
|
accept(ExpressionTIRVisitor<T> visitor)
Implements the visitor pattern with ExpressionTIRVisitor . |
|
boolean |
equals(java.lang.Object o)
|
|
java.util.List<FieldAssignmentTIR> |
getFieldExpressions()
Returns the list of field expressions. |
|
IPosition |
getPosition()
Retrieves the position of the code that generated the AST. |
|
HobbesType |
getType()
Retrieves the type of the expression. |
|
java.lang.String |
getTypeName()
Returns the type of the record. |
|
int |
hashCode()
|
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RecordETIR(IPosition position, java.lang.String type, java.util.List<FieldAssignmentTIR> fieldExps)
position
- the position of the record expression in the source code.type
- the name of the record type.fieldExps
- a list of field-initialization expressions (see
FieldAssignmentTIR
).public RecordETIR(java.lang.String type, java.util.List<FieldAssignmentTIR> fieldExps)
Method Detail |
---|
public java.util.List<FieldAssignmentTIR> getFieldExpressions()
getFieldExpressions
in interface IRecordETIR
public java.lang.String getTypeName()
getTypeName
in interface IRecordETIR
public HobbesType getType()
ExpressionTIR
getType
in interface ExpressionTIR
public <T> T accept(ExpressionTIRVisitor<T> visitor)
ExpressionTIR
ExpressionTIRVisitor
.
accept
in interface ExpressionTIR
visitor
- the visitor object.
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 IPosition getPosition()
getPosition
in interface HobbesTIR
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |