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 expression
annotationName - name of the annotation in which evaluated expression is used.
annotationMember - annotation member for which evaluated expression is used
expressionClassName - 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 Details

  • Method Details

    • equals

      public boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • annotationValue

      @NonNull public @NonNull Object annotationValue()
      Returns the value of the annotationValue record component.
      Returns:
      the value of the annotationValue record component
    • annotationName

      @NonNull public @NonNull String annotationName()
      Returns the value of the annotationName record component.
      Returns:
      the value of the annotationName record component
    • annotationMember

      @NonNull public @NonNull String annotationMember()
      Returns the value of the annotationMember record component.
      Returns:
      the value of the annotationMember record component
    • expressionClassName

      @NonNull public @NonNull String expressionClassName()
      Returns the value of the expressionClassName record component.
      Returns:
      the value of the expressionClassName record component