public class IfThenElseExpr
extends za.ac.sun.cs.green.expr.Expression
Modifier and Type | Field and Description |
---|---|
za.ac.sun.cs.green.expr.Expression |
condition |
za.ac.sun.cs.green.expr.Expression |
elseExpr |
za.ac.sun.cs.green.expr.Expression |
thenExpr |
Constructor and Description |
---|
IfThenElseExpr(za.ac.sun.cs.green.expr.Expression condition,
za.ac.sun.cs.green.expr.Expression thenExpr,
za.ac.sun.cs.green.expr.Expression elseExpr) |
Modifier and Type | Method and Description |
---|---|
void |
accept(za.ac.sun.cs.green.expr.Visitor visitor) |
boolean |
equals(java.lang.Object o) |
int |
getLeftLength() |
int |
getLength() |
java.util.List<java.lang.String> |
getOperationVector() |
int |
numVar() |
int |
numVarLeft() |
java.lang.String |
toString() |
public final za.ac.sun.cs.green.expr.Expression condition
public final za.ac.sun.cs.green.expr.Expression thenExpr
public final za.ac.sun.cs.green.expr.Expression elseExpr
public IfThenElseExpr(za.ac.sun.cs.green.expr.Expression condition, za.ac.sun.cs.green.expr.Expression thenExpr, za.ac.sun.cs.green.expr.Expression elseExpr)
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 za.ac.sun.cs.green.expr.Expression
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