|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.norecess.citkit.tir.expressions.SequenceETIR
public class SequenceETIR
The TIR for a sequence of expressions.
Constructor Summary | |
---|---|
SequenceETIR(IPosition position,
java.util.List<ExpressionTIR> expressions)
Constructs a sequence of expressions. |
|
SequenceETIR(java.util.List<ExpressionTIR> expressions)
Basic construcotr. |
Method Summary | ||
---|---|---|
|
accept(ExpressionTIRVisitor<T> visitor)
Implements the visitor pattern with ExpressionTIRVisitor . |
|
boolean |
equals(java.lang.Object o)
|
|
ExpressionTIR |
getExpression(int index)
|
|
java.util.List<? extends ExpressionTIR> |
getExpressions()
Returns the list of expressions in the sequence. |
|
IPosition |
getPosition()
Retrieves the position of the code that generated the AST. |
|
HobbesType |
getType()
Retrieves the type of the expression. |
|
int |
hashCode()
|
|
java.util.Iterator<ExpressionTIR> |
iterator()
|
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SequenceETIR(IPosition position, java.util.List<ExpressionTIR> expressions)
position
- the position of the sequence.expressions
- the list of expression in the sequence.public SequenceETIR(java.util.List<ExpressionTIR> expressions)
expressions
- the expressions of the sequence.Method Detail |
---|
public java.util.List<? extends ExpressionTIR> getExpressions()
getExpressions
in interface ISequenceETIR
public HobbesType getType()
ExpressionTIR
getType
in interface ExpressionTIR
public ExpressionTIR getExpression(int index)
getExpression
in interface ISequenceETIR
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
public java.util.Iterator<ExpressionTIR> iterator()
iterator
in interface java.lang.Iterable<ExpressionTIR>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |