public class BinaryOperatorExpression extends Expression
ExpressionTypes.BINARY_OPERATOR.| Constructor and Description |
|---|
BinaryOperatorExpression(int operator,
Expression firstOperand,
Expression secondOperand)
Creates a binary operator expression.
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
getFirstOperand()
Returns the first operand of this expression.
|
int |
getOperator()
Returns the operator of this expression.
|
Expression |
getSecondOperand()
Returns the second operand of this expression.
|
int |
getType()
Returns the type of this expression.
|
public BinaryOperatorExpression(int operator,
Expression firstOperand,
Expression secondOperand)
operator - the operator of the expression (see BinaryOperators).firstOperand - the first operand of the expression.secondOperand - the second operand of the expression.public int getOperator()
BinaryOperators).public Expression getFirstOperand()
public Expression getSecondOperand()
public int getType()
ExpressiongetType in class ExpressionExpressionTypes).