Package io.micronaut.core.expressions
Record Class EvaluatedExpressionReference
java.lang.Object
java.lang.Record
io.micronaut.core.expressions.EvaluatedExpressionReference
- Record Components:
annotationValue- initial annotation value which is treated as evaluated expressionannotationName- name of the annotation in which evaluated expression is used.annotationMember- annotation member for which evaluated expression is usedexpressionClassName- name for the class which is generated at compilation time and contains expression evaluation logic
@Internal
public record EvaluatedExpressionReference(@NonNull Object annotationValue, @NonNull String annotationName, @NonNull String annotationMember, @NonNull String expressionClassName)
extends Record
Wrapper for annotation value, containing evaluated expressions and
class name for generated expression class. This class is only used
at compilation time as part of compile-time annotation metadata.
- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationMemberrecord component.Returns the value of theannotationNamerecord component.Returns the value of theannotationValuerecord component.booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionClassNamerecord component.inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvaluatedExpressionReference
public EvaluatedExpressionReference(@NonNull @NonNull Object annotationValue, @NonNull @NonNull String annotationName, @NonNull @NonNull String annotationMember, @NonNull @NonNull String expressionClassName) Creates an instance of aEvaluatedExpressionReferencerecord class.- Parameters:
annotationValue- the value for theannotationValuerecord componentannotationName- the value for theannotationNamerecord componentannotationMember- the value for theannotationMemberrecord componentexpressionClassName- the value for theexpressionClassNamerecord component
-
-
Method Details
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
annotationValue
Returns the value of theannotationValuerecord component.- Returns:
- the value of the
annotationValuerecord component
-
annotationName
Returns the value of theannotationNamerecord component.- Returns:
- the value of the
annotationNamerecord component
-
annotationMember
Returns the value of theannotationMemberrecord component.- Returns:
- the value of the
annotationMemberrecord component
-
expressionClassName
Returns the value of theexpressionClassNamerecord component.- Returns:
- the value of the
expressionClassNamerecord component
-