Class ElvisOperator
java.lang.Object
io.micronaut.expressions.parser.ast.ExpressionNode
io.micronaut.expressions.parser.ast.conditional.TernaryExpression
io.micronaut.expressions.parser.ast.conditional.ElvisOperator
Support for the elvis operator. Example:
foo ?: bar
.-
Field Summary
Fields inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
classElement, nodeType
-
Constructor Summary
-
Method Summary
Methods inherited from class io.micronaut.expressions.parser.ast.conditional.TernaryExpression
doResolveClassElement, doResolveType, generateBytecode
Methods inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
compile, doResolveClassElement, resolveClassElement, resolveClassElement, resolveType, resolveType
-
Constructor Details
-
ElvisOperator
-
-
Method Details
-
shouldCoerceConditionToBoolean
protected boolean shouldCoerceConditionToBoolean()- Overrides:
shouldCoerceConditionToBoolean
in classTernaryExpression
- Returns:
- Whether the condition should be coerced to a boolean type.
-