Class EvaluatedExpressionProcessor

java.lang.Object
io.micronaut.inject.writer.EvaluatedExpressionProcessor

@Internal public final class EvaluatedExpressionProcessor extends Object
Internal utility class for writing annotation metadata with evaluated expressions.
  • Field Details

    • TYPE_BUILD_TIME_INIT

      protected static final org.objectweb.asm.Type TYPE_BUILD_TIME_INIT
  • Constructor Details

    • EvaluatedExpressionProcessor

      public EvaluatedExpressionProcessor(VisitorContext visitorContext, Element originatingElement)
      Default constructor.
      Parameters:
      visitorContext - The visitor context
      originatingElement - The originating element
  • Method Details

    • reset

      public static void reset()
      Reset after processing.
    • processEvaluatedExpressions

      public void processEvaluatedExpressions(AnnotationMetadata annotationMetadata, @Nullable @Nullable ClassElement thisElement)
      Process evaluated expression contained within annotation metadata.
      Parameters:
      annotationMetadata - The annotation metadata
      thisElement - If the expressino is evaluated in a non-static context, this type represents this
    • processEvaluatedExpressions

      public void processEvaluatedExpressions(MethodElement methodElement)
    • getEvaluatedExpressions

      public Collection<ExpressionWithContext> getEvaluatedExpressions()
    • writeEvaluatedExpressions

      public void writeEvaluatedExpressions(ClassWriterOutputVisitor visitor) throws IOException
      Throws:
      IOException
    • hasEvaluatedExpressions

      public boolean hasEvaluatedExpressions()
    • registerExpressionForBuildTimeInit

      public void registerExpressionForBuildTimeInit(org.objectweb.asm.ClassWriter classWriter)