public class AstVarExpr extends CloneableVariable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
type |
private int |
uniqueNum |
Constructor and Description |
---|
AstVarExpr(java.lang.String name,
java.lang.String type) |
AstVarExpr(java.lang.String name,
java.lang.String type,
int unique) |
Modifier and Type | Method and Description |
---|---|
void |
accept(za.ac.sun.cs.green.expr.Visitor visitor) |
AstVarExpr |
clone() |
boolean |
equals(java.lang.Object o) |
int |
getLeftLength() |
int |
getLength() |
java.util.List<java.lang.String> |
getOperationVector() |
java.lang.String |
getSymName() |
int |
getUniqueNum() |
int |
hashCode() |
AstVarExpr |
makeUnique(int unique) |
int |
numVar() |
int |
numVarLeft() |
java.lang.String |
toString() |
public AstVarExpr(java.lang.String name, java.lang.String type)
public AstVarExpr(java.lang.String name, java.lang.String type, int unique)
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 AstVarExpr clone()
clone
in class CloneableVariable
public AstVarExpr makeUnique(int unique) throws StaticRegionException
makeUnique
in class CloneableVariable
StaticRegionException
public java.lang.String getSymName()
public int hashCode()
hashCode
in class CloneableVariable
public int getUniqueNum()