@HashCodeAndEqualsPlugin.Enhance public static class MethodRegistry.Handler.ForAnnotationValue extends Object implements MethodRegistry.Handler, MethodRegistry.Handler.Compiled
MethodRegistry.Handler.Compiled, MethodRegistry.Handler.ForAbstractMethod, MethodRegistry.Handler.ForAnnotationValue, MethodRegistry.Handler.ForImplementation, MethodRegistry.Handler.ForVisibilityBridge
Constructor and Description |
---|
ForAnnotationValue(AnnotationValue<?,?> annotationValue)
Creates a handler for defining a default annotation value for a method.
|
Modifier and Type | Method and Description |
---|---|
TypeWriter.MethodPool.Record |
assemble(MethodDescription methodDescription,
MethodAttributeAppender attributeAppender,
Visibility visibility)
Assembles this compiled entry with a method attribute appender.
|
MethodRegistry.Handler.Compiled |
compile(Implementation.Target implementationTarget)
Compiles this handler.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
public ForAnnotationValue(AnnotationValue<?,?> annotationValue)
annotationValue
- The annotation value to set as a default value.public InstrumentedType prepare(InstrumentedType instrumentedType)
prepare
in interface InstrumentedType.Prepareable
instrumentedType
- The instrumented type in its current form.public MethodRegistry.Handler.Compiled compile(Implementation.Target implementationTarget)
compile
in interface MethodRegistry.Handler
implementationTarget
- The implementation target to compile this handler for.public TypeWriter.MethodPool.Record assemble(MethodDescription methodDescription, MethodAttributeAppender attributeAppender, Visibility visibility)
assemble
in interface MethodRegistry.Handler.Compiled
methodDescription
- The method description to apply with this handler.attributeAppender
- The method attribute appender to apply together with this handler.visibility
- The represented method's minimum visibility.Copyright © 2014–2020. All rights reserved.