|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 ISubscriptLValueTIRpublic LValueTIR getVariable()
getVariable in interface ISubscriptLValueTIRpublic <T> T accept(LValueTIRVisitor<T> visitor)
LValueTIRLValueTIRVisitor.
accept in interface LValueTIRT - 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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic HobbesType getType()
LValueTIR
getType in interface LValueTIRpublic void setType(HobbesType type)
LValueTIR
setType in interface LValueTIRtype - the type of the l-value.public IPosition getPosition()
LValueTIR
getPosition in interface HobbesTIRgetPosition in interface LValueTIR
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||