Record Class ExpressionCompilationContext
java.lang.Object
java.lang.Record
io.micronaut.expressions.parser.compilation.ExpressionCompilationContext
- Record Components:
evaluationVisitorContext- evaluation visitor contextexpressionEvaluationContextVar- The context variableadditionalStatements- The additional statements
@Internal
public record ExpressionCompilationContext(ExpressionVisitorContext evaluationVisitorContext, io.micronaut.sourcegen.model.ExpressionDef expressionEvaluationContextVar, List<io.micronaut.sourcegen.model.StatementDef> additionalStatements)
extends Record
Context class used for compiling expressions.
- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionCompilationContext(ExpressionVisitorContext evaluationVisitorContext, io.micronaut.sourcegen.model.ExpressionDef expressionEvaluationContextVar, List<io.micronaut.sourcegen.model.StatementDef> additionalStatements) Creates an instance of aExpressionCompilationContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<io.micronaut.sourcegen.model.StatementDef> Returns the value of theadditionalStatementsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluationVisitorContextrecord component.io.micronaut.sourcegen.model.ExpressionDefReturns the value of theexpressionEvaluationContextVarrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExpressionCompilationContext
public ExpressionCompilationContext(ExpressionVisitorContext evaluationVisitorContext, io.micronaut.sourcegen.model.ExpressionDef expressionEvaluationContextVar, List<io.micronaut.sourcegen.model.StatementDef> additionalStatements) Creates an instance of aExpressionCompilationContextrecord class.- Parameters:
evaluationVisitorContext- the value for theevaluationVisitorContextrecord componentexpressionEvaluationContextVar- the value for theexpressionEvaluationContextVarrecord componentadditionalStatements- the value for theadditionalStatementsrecord component
-
-
Method Details
-
visitorContext
- Returns:
- The visitor context
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
evaluationVisitorContext
Returns the value of theevaluationVisitorContextrecord component.- Returns:
- the value of the
evaluationVisitorContextrecord component
-
expressionEvaluationContextVar
public io.micronaut.sourcegen.model.ExpressionDef expressionEvaluationContextVar()Returns the value of theexpressionEvaluationContextVarrecord component.- Returns:
- the value of the
expressionEvaluationContextVarrecord component
-
additionalStatements
Returns the value of theadditionalStatementsrecord component.- Returns:
- the value of the
additionalStatementsrecord component
-