Record Class ExpressionVisitorContext
java.lang.Object
java.lang.Record
io.micronaut.expressions.parser.compilation.ExpressionVisitorContext
- Record Components:
compilationContext
- expression compilation contextvisitorContext
- visitor contextmethodVisitor
- method visitor for compiled expression class
@Internal
public record ExpressionVisitorContext(@NonNull ExpressionCompilationContext compilationContext, @NonNull VisitorContext visitorContext, @NonNull org.objectweb.asm.commons.GeneratorAdapter methodVisitor)
extends Record
Context class used for compiling expressions.
- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Constructor Summary
ConstructorDescriptionExpressionVisitorContext
(@NonNull ExpressionCompilationContext compilationContext, @NonNull VisitorContext visitorContext, @NonNull org.objectweb.asm.commons.GeneratorAdapter methodVisitor) Creates an instance of aExpressionVisitorContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompilationContext
record component.final boolean
Indicates whether some other object is "equal to" this one.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.Returns the value of thevisitorContext
record component.
-
Constructor Details
-
ExpressionVisitorContext
public ExpressionVisitorContext(@NonNull @NonNull ExpressionCompilationContext compilationContext, @NonNull @NonNull VisitorContext visitorContext, @NonNull @NonNull org.objectweb.asm.commons.GeneratorAdapter methodVisitor) Creates an instance of aExpressionVisitorContext
record class.- Parameters:
compilationContext
- the value for thecompilationContext
record componentvisitorContext
- the value for thevisitorContext
record componentmethodVisitor
- the value for themethodVisitor
record component
-
-
Method Details
-
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)
. -
compilationContext
Returns the value of thecompilationContext
record component.- Returns:
- the value of the
compilationContext
record component
-
visitorContext
Returns the value of thevisitorContext
record component.- Returns:
- the value of the
visitorContext
record component
-
methodVisitor
Returns the value of themethodVisitor
record component.- Returns:
- the value of the
methodVisitor
record component
-