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| Modifier | Constructor and Description |
|---|---|
protected |
ForAnnotationValue(Object annotationValue,
ModifierResolver modifierResolver)
Creates a handler for defining a default annotation value for a method.
|
| Modifier and Type | Method and Description |
|---|---|
TypeWriter.MethodPool.Entry |
assemble(MethodAttributeAppender attributeAppender)
Assembles this compiled entry with a method attribute appender.
|
MethodRegistry.Handler.Compiled |
compile(Implementation.Target implementationTarget)
Compiles this handler.
|
boolean |
equals(Object other) |
int |
hashCode() |
static MethodRegistry.Handler |
of(Object annotationValue,
ModifierResolver modifierResolver)
Represents the given value as an annotation default value handler after validating its suitability.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares the instrumented type for this handler.
|
String |
toString() |
protected ForAnnotationValue(Object annotationValue, ModifierResolver modifierResolver)
annotationValue - The annotation value to set as a default value.modifierResolver - The transformer to apply to the modifier of this method.public static MethodRegistry.Handler of(Object annotationValue, ModifierResolver modifierResolver)
annotationValue - The annotation value to represent.modifierResolver - The transformer to apply to the modifier of this method.public InstrumentedType prepare(InstrumentedType instrumentedType)
MethodRegistry.Handlerprepare in interface MethodRegistry.HandlerinstrumentedType - The instrumented type to prepare.public MethodRegistry.Handler.Compiled compile(Implementation.Target implementationTarget)
MethodRegistry.Handlercompile in interface MethodRegistry.HandlerimplementationTarget - The implementation target to compile this handler for.public TypeWriter.MethodPool.Entry assemble(MethodAttributeAppender attributeAppender)
MethodRegistry.Handler.Compiledassemble in interface MethodRegistry.Handler.CompiledattributeAppender - The method attribute appender to apply together with this handler.Copyright © 2014–2015. All rights reserved.