Class ComparablesComparisonOperation
java.lang.Object
io.micronaut.expressions.parser.ast.ExpressionNode
io.micronaut.expressions.parser.ast.operator.binary.ComparablesComparisonOperation
Expression AST node for relational operations (>, <,
>=
, <=
) on
types that implement Comparable
interface.- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Field Summary
Fields inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
classElement, nodeType
-
Constructor Summary
ConstructorDescriptionComparablesComparisonOperation
(ExpressionNode leftOperand, ExpressionNode rightOperand, int comparisonOpcode) -
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
-
ComparablesComparisonOperation
public ComparablesComparisonOperation(ExpressionNode leftOperand, ExpressionNode rightOperand, int comparisonOpcode)
-
-
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
-