Class NumericComparisonOperation
java.lang.Object
io.micronaut.expressions.parser.ast.ExpressionNode
io.micronaut.expressions.parser.ast.operator.binary.NumericComparisonOperation
Expression AST node for relational operations (>, <,
>=
, <=
) on
numeric types.- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Field Summary
Fields inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
classElement, nodeType
-
Constructor Summary
ConstructorDescriptionNumericComparisonOperation
(ExpressionNode leftOperand, ExpressionNode rightOperand, int intComparisonOpcode, int nonIntComparisonOpcode) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.objectweb.asm.Type
Resolves expression AST node type.void
Generates bytecode for this AST node.Methods inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
compile, doResolveClassElement, doResolveClassElement, resolveClassElement, resolveClassElement, resolveType, resolveType
-
Constructor Details
-
NumericComparisonOperation
public NumericComparisonOperation(ExpressionNode leftOperand, ExpressionNode rightOperand, int intComparisonOpcode, int nonIntComparisonOpcode)
-
-
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
-
generateBytecode
Description copied from class:ExpressionNode
Generates bytecode for this AST node.- Specified by:
generateBytecode
in classExpressionNode
- Parameters:
ctx
- expression compilation context
-