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
ConstructorDescriptionExpressionCompilationContext
(@NonNull ExpressionVisitorContext evaluationVisitorContext, @NonNull io.micronaut.sourcegen.model.ExpressionDef expressionEvaluationContextVar, @NonNull List<io.micronaut.sourcegen.model.StatementDef> additionalStatements) Creates an instance of aExpressionCompilationContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalStatements
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theevaluationVisitorContext
record component.@NonNull io.micronaut.sourcegen.model.ExpressionDef
Returns the value of theexpressionEvaluationContextVar
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
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 aExpressionCompilationContext
record class.- Parameters:
evaluationVisitorContext
- the value for theevaluationVisitorContext
record componentexpressionEvaluationContextVar
- the value for theexpressionEvaluationContextVar
record componentadditionalStatements
- the value for theadditionalStatements
record 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 theevaluationVisitorContext
record component.- Returns:
- the value of the
evaluationVisitorContext
record component
-
expressionEvaluationContextVar
@NonNull public @NonNull io.micronaut.sourcegen.model.ExpressionDef expressionEvaluationContextVar()Returns the value of theexpressionEvaluationContextVar
record component.- Returns:
- the value of the
expressionEvaluationContextVar
record component
-
additionalStatements
Returns the value of theadditionalStatements
record component.- Returns:
- the value of the
additionalStatements
record component
-