Class UnaryOperator
java.lang.Object
io.micronaut.expressions.parser.ast.ExpressionNode
io.micronaut.expressions.parser.ast.operator.unary.UnaryOperator
- Direct Known Subclasses:
EmptyOperator
,NegOperator
,NotOperator
,PosOperator
@Internal
public abstract sealed class UnaryOperator
extends ExpressionNode
permits EmptyOperator, NegOperator, NotOperator, PosOperator
Abstract expression node for unary operators.
- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Field Summary
Fields inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
classElement, nodeType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ClassElement
Resolves the class element for this node.org.objectweb.asm.Type
Resolves expression AST node type.Methods inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
compile, generateBytecode, resolveClassElement, resolveType
-
Field Details
-
operand
-
-
Constructor Details
-
UnaryOperator
-
-
Method Details
-
doResolveType
Description copied from class:ExpressionNode
Resolves expression AST node type.- Specified by:
doResolveType
in classExpressionNode
- Parameters:
ctx
- expression compilation context- Returns:
- resolved type
-
doResolveClassElement
Description copied from class:ExpressionNode
Resolves the class element for this node.- Overrides:
doResolveClassElement
in classExpressionNode
- Parameters:
ctx
- The expression compilation context- Returns:
- The resolved type
-