public class ArrayRefVarExpr extends CloneableVariable
Modifier and Type | Field and Description |
---|---|
ArrayRef |
arrayRef |
SubscriptPair |
subscript |
int |
uniqueNum |
java.lang.String |
varId |
Constructor and Description |
---|
ArrayRefVarExpr(ArrayRef arrayRef,
SubscriptPair subscript) |
ArrayRefVarExpr(ArrayRef arrayRef,
SubscriptPair subscript,
int uniqueNum) |
Modifier and Type | Method and Description |
---|---|
void |
accept(za.ac.sun.cs.green.expr.Visitor visitor) |
ArrayRefVarExpr |
clone() |
boolean |
equals(java.lang.Object o) |
int |
getLeftLength() |
int |
getLength() |
java.util.List<java.lang.String> |
getOperationVector() |
java.lang.String |
getSymName() |
int |
hashCode() |
ArrayRefVarExpr |
makeUnique(int unique) |
int |
numVar() |
int |
numVarLeft() |
java.lang.String |
toString() |
public final ArrayRef arrayRef
public final SubscriptPair subscript
public java.lang.String varId
public int uniqueNum
public ArrayRefVarExpr(ArrayRef arrayRef, SubscriptPair subscript)
public ArrayRefVarExpr(ArrayRef arrayRef, SubscriptPair subscript, int uniqueNum)
public void accept(za.ac.sun.cs.green.expr.Visitor visitor) throws za.ac.sun.cs.green.expr.VisitorException
accept
in class za.ac.sun.cs.green.expr.Expression
za.ac.sun.cs.green.expr.VisitorException
public boolean equals(java.lang.Object o)
equals
in class CloneableVariable
public java.lang.String toString()
toString
in class za.ac.sun.cs.green.expr.Expression
public int getLength()
getLength
in class za.ac.sun.cs.green.expr.Expression
public int getLeftLength()
getLeftLength
in class za.ac.sun.cs.green.expr.Expression
public int numVar()
numVar
in class za.ac.sun.cs.green.expr.Expression
public int numVarLeft()
numVarLeft
in class za.ac.sun.cs.green.expr.Expression
public java.util.List<java.lang.String> getOperationVector()
getOperationVector
in class za.ac.sun.cs.green.expr.Expression
public java.lang.String getSymName()
public ArrayRefVarExpr clone()
clone
in class CloneableVariable
public ArrayRefVarExpr makeUnique(int unique) throws StaticRegionException
makeUnique
in class CloneableVariable
StaticRegionException
public int hashCode()
hashCode
in class CloneableVariable