|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norecess.citkit.tir.lvalues.SubscriptLValueTIR
public class SubscriptLValueTIR
The AST for a subscripted variable reference.
Constructor Summary | |
---|---|
SubscriptLValueTIR(IPosition position,
LValueTIR variable,
ExpressionTIR index)
Constructs a subscripted variable reference. |
|
SubscriptLValueTIR(LValueTIR variable,
ExpressionTIR index)
Basic constructor. |
Method Summary | ||
---|---|---|
|
accept(LValueTIRVisitor<T> visitor)
Implements the visitor pattern with LValueTIRVisitor . |
|
boolean |
equals(java.lang.Object o)
|
|
ExpressionTIR |
getIndex()
Returns the array index of the subscript reference. |
|
IPosition |
getPosition()
Returns the location of the l-value in the code. |
|
HobbesType |
getType()
Returns the type of the l-value. |
|
LValueTIR |
getVariable()
Returns the variable being dereferenced. |
|
int |
hashCode()
|
|
void |
setType(HobbesType type)
Sets the type of the l-value. |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SubscriptLValueTIR(IPosition position, LValueTIR variable, ExpressionTIR index)
position
- the position of the subscripted variable reference in the
source code.variable
- the subscripted variable.index
- the index of the subscript.public SubscriptLValueTIR(LValueTIR variable, ExpressionTIR index)
variable
- the subscripted variable.index
- the index.Method Detail |
---|
public ExpressionTIR getIndex()
getIndex
in interface ISubscriptLValueTIR
public LValueTIR getVariable()
getVariable
in interface ISubscriptLValueTIR
public <T> T accept(LValueTIRVisitor<T> visitor)
LValueTIR
LValueTIRVisitor
.
accept
in interface LValueTIR
T
- the return type from the visit with the visitor.visitor
- the visitor itself.
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 HobbesType getType()
LValueTIR
getType
in interface LValueTIR
public void setType(HobbesType type)
LValueTIR
setType
in interface LValueTIR
type
- the type of the l-value.public IPosition getPosition()
LValueTIR
getPosition
in interface HobbesTIR
getPosition
in interface LValueTIR
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |