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.Expressionza.ac.sun.cs.green.expr.VisitorExceptionpublic boolean equals(java.lang.Object o)
equals in class za.ac.sun.cs.green.expr.Expressionpublic java.lang.String toString()
toString in class za.ac.sun.cs.green.expr.Expressionpublic int getLength()
getLength in class za.ac.sun.cs.green.expr.Expressionpublic int getLeftLength()
getLeftLength in class za.ac.sun.cs.green.expr.Expressionpublic int numVar()
numVar in class za.ac.sun.cs.green.expr.Expressionpublic int numVarLeft()
numVarLeft in class za.ac.sun.cs.green.expr.Expressionpublic java.util.List<java.lang.String> getOperationVector()
getOperationVector in class za.ac.sun.cs.green.expr.Expression