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(@NonNull ExpressionVisitorContext evaluationVisitorContext, @NonNull io.micronaut.sourcegen.model.ExpressionDef expressionEvaluationContextVar, @NonNull 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(@NonNull ExpressionVisitorContext evaluationVisitorContext, @NonNull io.micronaut.sourcegen.model.ExpressionDef expressionEvaluationContextVar, @NonNull List<io.micronaut.sourcegen.model.StatementDef> additionalStatements) Creates an instance of aExpressionCompilationContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalStatementsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluationVisitorContextrecord component.@NonNull 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(@NonNull @NonNull ExpressionVisitorContext evaluationVisitorContext, @NonNull @NonNull io.micronaut.sourcegen.model.ExpressionDef expressionEvaluationContextVar, @NonNull @NonNull 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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
@NonNull public @NonNull 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
-