Class EvaluatedExpressionsUtils

java.lang.Object
io.micronaut.expressions.util.EvaluatedExpressionsUtils

@Internal public final class EvaluatedExpressionsUtils extends Object
Utility class for working with annotation metadata containing evaluated expressions.
Since:
4.0.0
Author:
Sergey Gavrilov
  • Constructor Details

    • EvaluatedExpressionsUtils

      public EvaluatedExpressionsUtils()
  • Method Details

    • evaluateExpressionType

      public static ClassElement evaluateExpressionType(VisitorContext visitorContext, MethodElement methodElement, EvaluatedExpressionReference reference)
      Evaluates the expression return type.
      Parameters:
      visitorContext - The visitor context
      methodElement - The method element
      reference - The expression reference
      Returns:
      The resolved type
      Since:
      4.3.0
    • evaluateExpressionType

      public static ClassElement evaluateExpressionType(VisitorContext visitorContext, ClassElement thisElement, EvaluatedExpressionReference reference)
      Evaluates the expression return type.
      Parameters:
      visitorContext - The visitor context
      thisElement - The this element
      reference - The expression reference
      Returns:
      The resolved type
      Since:
      4.3.0
    • findEvaluatedExpressionReferences

      public static Collection<EvaluatedExpressionReference> findEvaluatedExpressionReferences(AnnotationMetadata annotationMetadata)
      Finds evaluated expression references in provided annotation metadata, including nested annotation values.
      Parameters:
      annotationMetadata - metadata to search references in
      Returns:
      collection of expression references