|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norecess.citkit.tir.expressions.ArrayETIR
public class ArrayETIR
The TIR for the expression to create (i.e., allocate) a new array.
| Constructor Summary | |
|---|---|
ArrayETIR(IPosition position,
java.lang.String type,
ExpressionTIR size,
ExpressionTIR init)
Creates an array expression. |
|
ArrayETIR(java.lang.String type,
ExpressionTIR size,
ExpressionTIR init)
Basic constructor. |
|
| Method Summary | ||
|---|---|---|
|
accept(ExpressionTIRVisitor<T> visitor)
Implements the visitor pattern with ExpressionTIRVisitor. |
|
boolean |
equals(java.lang.Object o)
|
|
java.lang.String |
getElementType()
Returns the type of the array. |
|
ExpressionTIR |
getInit()
Returns the initialization expression. |
|
IPosition |
getPosition()
Retrieves the position of the code that generated the TIR. |
|
ExpressionTIR |
getSize()
Returns the size of the array. |
|
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 ArrayETIR(IPosition position,
java.lang.String type,
ExpressionTIR size,
ExpressionTIR init)
position - the position of the array in the source code.type - the type of the elements.size - the number of elements in the array.init - the initialization of the elements.
public ArrayETIR(java.lang.String type,
ExpressionTIR size,
ExpressionTIR init)
type - the type of the elements.size - the number of elements.init - the initial value of the elements.| Method Detail |
|---|
public HobbesType getType()
ExpressionTIR
getType in interface ExpressionTIRpublic ExpressionTIR getInit()
getInit in interface IArrayETIRpublic ExpressionTIR getSize()
getSize in interface IArrayETIRpublic java.lang.String getElementType()
getElementType in interface IArrayETIRpublic <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 | |||||||||