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
ConstructorDescriptionExpressionCompilationContext
(@NonNull ExpressionVisitorContext evaluationVisitorContext, @NonNull org.objectweb.asm.commons.GeneratorAdapter methodVisitor) Creates an instance of aExpressionCompilationContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theevaluationVisitorContext
record component.final int
hashCode()
Returns a hash code value for this object.@NonNull org.objectweb.asm.commons.GeneratorAdapter
Returns the value of themethodVisitor
record component.final String
toString()
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 aExpressionCompilationContext
record class.- Parameters:
evaluationVisitorContext
- the value for theevaluationVisitorContext
record componentmethodVisitor
- the value for themethodVisitor
record 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 theevaluationVisitorContext
record component.- Returns:
- the value of the
evaluationVisitorContext
record component
-
methodVisitor
Returns the value of themethodVisitor
record component.- Returns:
- the value of the
methodVisitor
record component
-