'd' - 3 = 'a'
It can be used as a unary operator for numbers. The standard promotions are performed when the operand types vary (double-int=double). For other options it defers to the registered overloader.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | generateCode(MethodVisitor
the ASM MethodVisitor into which code should be generated mv, CodeFlow a context object with info about what is on the stack cf)Overrides org. Generate the bytecode for this node into the supplied visitor. |
| public SpelNodeImpl | |
| public TypedValue | getValueInternal(ExpressionState state)
Implements abstract org.
|
| public boolean | isCompilable()
Overrides org. Check whether a node can be compiled to bytecode. |
| public boolean | Returns: true if it is a negative number literalDetermine if this operator is a unary minus and its child is a number literal. |
| public String | toStringAST()
Overrides org. Implements org. String format for all operators is the same
|
| OpMinus | back to summary |
|---|---|
| public OpMinus(int startPos, int endPos, SpelNodeImpl... operands) | |
| generateCode | back to summary |
|---|---|
| public void generateCode(MethodVisitor mv, CodeFlow cf) Overrides org. Doc from org. Generate the bytecode for this node into the supplied visitor. Context info about the current expression being compiled is available in the codeflow object, e.g. including information about the type of the object currently on the stack.
| |
| getRightOperand | back to summary |
|---|---|
| public SpelNodeImpl getRightOperand() Overrides org.
| |
| getValueInternal | back to summary |
|---|---|
| public TypedValue getValueInternal(ExpressionState state) throws EvaluationException Implements abstract org.
| |
| isCompilable | back to summary |
|---|---|
| public boolean isCompilable() Overrides org. Doc from org. Check whether a node can be compiled to bytecode. The reasoning in each node may be different but will typically involve checking whether the exit type descriptor of the node is known and any relevant child nodes are compilable.
| |
| isNegativeNumberLiteral | back to summary |
|---|---|
| public boolean isNegativeNumberLiteral() Determine if this operator is a unary minus and its child is a number literal.
| |
| toStringAST | back to summary |
|---|---|
| public String toStringAST() Overrides org. Implements org. Doc from org. String format for all operators is the same
| |