public class UnaryOperatorExpression extends Expression
ExpressionTypes.UNARY_OPERATOR.| Constructor and Description |
|---|
UnaryOperatorExpression(int operator,
Expression operand)
Creates a unary operator expression.
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
getOperand()
Returns the operand of this expression.
|
int |
getOperator()
Returns the operator of this expression.
|
int |
getType()
Returns the type of this expression.
|
public UnaryOperatorExpression(int operator,
Expression operand)
operator - the operator of the expression (see UnaryOperators).operand - the operand of the expression.public int getOperator()
UnaryOperators).public Expression getOperand()
public int getType()
ExpressiongetType in class ExpressionExpressionTypes).