public final class WalaVarExpr extends CloneableVariable
Modifier and Type | Field and Description |
---|---|
int |
number
This number matches the number defined for a specific Wala Variable.
|
private int |
uniqueNum |
Modifier | Constructor and Description |
---|---|
|
WalaVarExpr(int var) |
private |
WalaVarExpr(int var,
int uniqueNum) |
Modifier and Type | Method and Description |
---|---|
void |
accept(za.ac.sun.cs.green.expr.Visitor visitor) |
WalaVarExpr |
clone() |
boolean |
equals(java.lang.Object o) |
int |
getLeftLength() |
int |
getLength() |
java.util.List<java.lang.String> |
getOperationVector() |
java.lang.String |
getSymName()
Gets the symbolic name to be used for vars in SPF.
|
int |
getUniqueNum() |
int |
hashCode() |
WalaVarExpr |
makeUnique(int unique) |
int |
numVar() |
int |
numVarLeft() |
java.lang.String |
toString() |
public final int number
private int uniqueNum
public WalaVarExpr(int var)
private WalaVarExpr(int var, 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 getSymName()
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 WalaVarExpr clone()
clone
in class CloneableVariable
public WalaVarExpr makeUnique(int unique) throws StaticRegionException
makeUnique
in class CloneableVariable
StaticRegionException
public int hashCode()
hashCode
in class CloneableVariable
public int getUniqueNum()