Record Class ExpressionCompilationContext
java.lang.Object
java.lang.Record
io.micronaut.expressions.parser.compilation.ExpressionCompilationContext
- Record Components:
evaluationVisitorContext- evaluation visitor contextmethodVisitor- method visitor for compiled expression class
@Internal
public record ExpressionCompilationContext(@NonNull ExpressionVisitorContext evaluationVisitorContext, @NonNull org.objectweb.asm.commons.GeneratorAdapter methodVisitor)
extends Record
Context class used for compiling expressions.
- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionCompilationContext(@NonNull ExpressionVisitorContext evaluationVisitorContext, @NonNull org.objectweb.asm.commons.GeneratorAdapter methodVisitor) Creates an instance of aExpressionCompilationContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluationVisitorContextrecord component.final inthashCode()Returns a hash code value for this object.@NonNull org.objectweb.asm.commons.GeneratorAdapterReturns the value of themethodVisitorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExpressionCompilationContext
public ExpressionCompilationContext(@NonNull @NonNull ExpressionVisitorContext evaluationVisitorContext, @NonNull @NonNull org.objectweb.asm.commons.GeneratorAdapter methodVisitor) Creates an instance of aExpressionCompilationContextrecord class.- Parameters:
evaluationVisitorContext- the value for theevaluationVisitorContextrecord componentmethodVisitor- the value for themethodVisitorrecord component
-
-
Method Details
-
evaluationContext
- Returns:
- The evaluation context
-
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
-
methodVisitor
Returns the value of themethodVisitorrecord component.- Returns:
- the value of the
methodVisitorrecord component
-