Package io.micronaut.sourcegen.model
Interface ExpressionDef.ConditionExpressionDef
- All Superinterfaces:
ExpressionDef
- All Known Implementing Classes:
ExpressionDef.And,ExpressionDef.ComparisonOperation,ExpressionDef.EqualsReferentially,ExpressionDef.EqualsStructurally,ExpressionDef.InstanceOf,ExpressionDef.IsFalse,ExpressionDef.IsNotNull,ExpressionDef.IsNull,ExpressionDef.IsTrue,ExpressionDef.NotEqualsReferentially,ExpressionDef.NotEqualsStructurally,ExpressionDef.Or
- Enclosing interface:
- ExpressionDef
public static sealed interface ExpressionDef.ConditionExpressionDef
extends ExpressionDef
permits ExpressionDef.InstanceOf, ExpressionDef.ComparisonOperation, ExpressionDef.EqualsStructurally, ExpressionDef.NotEqualsStructurally, ExpressionDef.EqualsReferentially, ExpressionDef.NotEqualsReferentially, 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.ComparisonOperation, 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.Lambda, ExpressionDef.MathBinaryOperation, ExpressionDef.MathUnaryOperation, ExpressionDef.NewArrayInitialized, ExpressionDef.NewArrayOfSize, ExpressionDef.NewInstance, ExpressionDef.NotEqualsReferentially, ExpressionDef.NotEqualsStructurally, ExpressionDef.Or, ExpressionDef.StringConcatenation, ExpressionDef.Switch, ExpressionDef.SwitchYieldCase -
Method Summary
Modifier and TypeMethodDescriptionand(ExpressionDef.ConditionExpressionDef expression) The and condition of this variable.default StatementDefdoIf(StatementDef statement) The conditional statement based on this expression.default ExpressionDefdoIfElse(ExpressionDef expression, ExpressionDef elseExpression) The conditional if else expression.default StatementDefdoIfElse(StatementDef statement, StatementDef elseStatement) The conditional statement based on this expression.or(ExpressionDef.ConditionExpressionDef expression) The or condition of this variable.default TypeDeftype()The type of the expression.Methods inherited from interface io.micronaut.sourcegen.model.ExpressionDef
arrayElement, arrayElement, asExpressionSwitch, asStatementSwitch, asStatementSwitch, cast, cast, compare, 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, invoke, invokeConstructor, invokeConstructor, invokeConstructor, invokeConstructor, invokeConstructor, invokeConstructor, invokeConstructor, invokeConstructor, invokeGetClass, invokeHashCode, isFalse, isNonNull, isNull, isTrue, math, math, nestedExpressionsStream, newLocal, newLocal, notEqualsReferentially, notEqualsStructurally, returning, stringConcat, whileLoop
-
Method Details
-
type
Description copied from interface:ExpressionDefThe type of the expression.- Specified by:
typein 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
-