Package io.micronaut.sourcegen.model
Interface ExpressionDef.ConditionExpressionDef
- All Superinterfaces:
ExpressionDef
- All Known Implementing Classes:
ExpressionDef.And
,ExpressionDef.Condition
,ExpressionDef.EqualsReferentially
,ExpressionDef.EqualsStructurally
,ExpressionDef.InstanceOf
,ExpressionDef.IsFalse
,ExpressionDef.IsNotNull
,ExpressionDef.IsNull
,ExpressionDef.IsTrue
,ExpressionDef.Or
- Enclosing interface:
- ExpressionDef
public static sealed interface ExpressionDef.ConditionExpressionDef
extends ExpressionDef
permits ExpressionDef.InstanceOf, ExpressionDef.EqualsStructurally, ExpressionDef.EqualsReferentially, ExpressionDef.Condition, ExpressionDef.IsNull, ExpressionDef.IsNotNull, ExpressionDef.IsTrue, ExpressionDef.IsFalse, ExpressionDef.And, ExpressionDef.Or
The conditional expression.
- Since:
- 1.5
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.sourcegen.model.ExpressionDef
ExpressionDef.And, ExpressionDef.ArrayElement, ExpressionDef.Cast, ExpressionDef.Condition, ExpressionDef.ConditionExpressionDef, ExpressionDef.Constant, ExpressionDef.EqualsReferentially, ExpressionDef.EqualsStructurally, ExpressionDef.GetPropertyValue, ExpressionDef.IfElse, ExpressionDef.InstanceOf, ExpressionDef.InvokeGetClassMethod, ExpressionDef.InvokeHashCodeMethod, ExpressionDef.InvokeInstanceMethod, ExpressionDef.InvokeStaticMethod, ExpressionDef.IsFalse, ExpressionDef.IsNotNull, ExpressionDef.IsNull, ExpressionDef.IsTrue, ExpressionDef.MathOp, ExpressionDef.NewArrayInitialized, ExpressionDef.NewArrayOfSize, ExpressionDef.NewInstance, ExpressionDef.Or, ExpressionDef.Switch, ExpressionDef.SwitchYieldCase
-
Method Summary
Modifier and TypeMethodDescriptionand
(ExpressionDef.ConditionExpressionDef expression) The and condition of this variable.default StatementDef
doIf
(StatementDef statement) The conditional statement based on this expression.default ExpressionDef
doIfElse
(ExpressionDef expression, ExpressionDef elseExpression) The conditional if else expression.default StatementDef
doIfElse
(StatementDef statement, StatementDef elseStatement) The conditional statement based on this expression.or
(ExpressionDef.ConditionExpressionDef expression) The or condition of this variable.default TypeDef
type()
The type of the expression.Methods inherited from interface io.micronaut.sourcegen.model.ExpressionDef
arrayElement, asCondition, asExpressionSwitch, asStatementSwitch, asStatementSwitch, cast, cast, doThrow, equalsReferentially, equalsStructurally, field, field, field, getPropertyValue, ifFalse, ifFalse, ifFalse, ifNonNull, ifNonNull, ifNonNull, ifNull, ifNull, ifNull, ifTrue, ifTrue, ifTrue, instanceOf, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invokeConstructor, invokeConstructor, invokeConstructor, invokeConstructor, invokeConstructor, invokeConstructor, invokeConstructor, invokeConstructor, invokeGetClass, invokeHashCode, isFalse, isNonNull, isNull, isTrue, math, newLocal, newLocal, returning, whileLoop
-
Method Details
-
type
Description copied from interface:ExpressionDef
The type of the expression.- Specified by:
type
in interfaceExpressionDef
- Returns:
- The type
-
doIf
The conditional statement based on this expression.- Parameters:
statement
- The statement- Returns:
- The statement returning this expression
- Since:
- 1.5
-
doIfElse
The conditional statement based on this expression.- Parameters:
statement
- The statementelseStatement
- The else statement- Returns:
- The statement returning this expression
- Since:
- 1.5
-
doIfElse
The conditional if else expression.- Parameters:
expression
- The expressionelseExpression
- The else expression- Returns:
- The statement returning this expression
- Since:
- 1.5
-
and
The and condition of this variable.- Parameters:
expression
- The expression of this variable- Returns:
- The "and" condition expression
- Since:
- 1.5
-
or
The or condition of this variable.- Parameters:
expression
- The expression of this variable- Returns:
- The "or" condition expression
- Since:
- 1.5
-