public class UnaryExpressionHelper
extends Object
A helper class used to generate bytecode for unary expressions. AST transformations willing to use a custom unary expression helper may set the WriterControllerFactory node metadata on a class node to provide a custom WriterController which would in turn use a custom expression helper.
| Modifiers | Name | Description |
|---|---|---|
protected WriterController |
controller |
The controller coordinating all bytecode writers for the current class. |
| Constructor and description |
|---|
UnaryExpressionHelper(WriterController controller)Creates an unary expression helper with the given controller. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
writeBitwiseNegate(BitwiseNegationExpression expression)Generates bytecode for a bitwise negation expression. |
|
public void |
writeNotExpression(NotExpression expression)Generates bytecode for a logical not expression. |
|
public void |
writeUnaryMinus(UnaryMinusExpression expression)Generates bytecode for a unary minus expression. |
|
public void |
writeUnaryPlus(UnaryPlusExpression expression)Generates bytecode for a unary plus expression. |
The controller coordinating all bytecode writers for the current class.
Creates an unary expression helper with the given controller.
controller - the writer controllerGenerates bytecode for a bitwise negation expression.
expression - the bitwise negation expressionGenerates bytecode for a logical not expression.
expression - the not expressionGenerates bytecode for a unary minus expression.
expression - the unary minus expressionGenerates bytecode for a unary plus expression.
expression - the unary plus expressionCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.