Package io.micronaut.inject.writer
Class EvaluatedExpressionProcessor
java.lang.Object
io.micronaut.inject.writer.EvaluatedExpressionProcessor
Internal utility class for writing annotation metadata with evaluated expressions.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.objectweb.asm.Type
-
Constructor Summary
ConstructorDescriptionEvaluatedExpressionProcessor
(VisitorContext visitorContext, Element originatingElement) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
processEvaluatedExpressions
(AnnotationMetadata annotationMetadata, @Nullable ClassElement thisElement) Process evaluated expression contained within annotation metadata.void
processEvaluatedExpressions
(MethodElement methodElement) void
registerExpressionForBuildTimeInit
(org.objectweb.asm.ClassWriter classWriter) static void
reset()
Reset after processing.void
-
Field Details
-
TYPE_BUILD_TIME_INIT
protected static final org.objectweb.asm.Type TYPE_BUILD_TIME_INIT
-
-
Constructor Details
-
EvaluatedExpressionProcessor
Default constructor.- Parameters:
visitorContext
- The visitor contextoriginatingElement
- 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 metadatathisElement
- If the expressino is evaluated in a non-static context, this type representsthis
-
processEvaluatedExpressions
-
getEvaluatedExpressions
-
writeEvaluatedExpressions
- Throws:
IOException
-
hasEvaluatedExpressions
public boolean hasEvaluatedExpressions() -
registerExpressionForBuildTimeInit
public void registerExpressionForBuildTimeInit(org.objectweb.asm.ClassWriter classWriter)
-