public static class TypeWriter.MethodPool.Entry.ForAnnotationDefaultValue extends TypeWriter.MethodPool.Entry.AbstractDefiningEntry
TypeWriter.MethodPool.Entry.AbstractDefiningEntry, TypeWriter.MethodPool.Entry.ForAbstractMethod, TypeWriter.MethodPool.Entry.ForAnnotationDefaultValue, TypeWriter.MethodPool.Entry.ForImplementation, TypeWriter.MethodPool.Entry.ForSkippedMethod, TypeWriter.MethodPool.Entry.Sort| Constructor and Description |
|---|
ForAnnotationDefaultValue(Object annotationValue,
MethodAttributeAppender methodAttributeAppender,
ModifierResolver modifierResolver)
Creates a new entry for defining a method with a default annotation value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyBody(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
MethodDescription methodDescription)
Applies the body of this entry.
|
void |
applyHead(MethodVisitor methodVisitor,
MethodDescription methodDescription)
Applies the head of this entry.
|
boolean |
equals(Object other) |
ModifierResolver |
getModifierResolver()
Returns this entry's modifier transformer.
|
TypeWriter.MethodPool.Entry.Sort |
getSort()
Returns the sort of this method instrumentation.
|
int |
hashCode() |
TypeWriter.MethodPool.Entry |
prepend(ByteCodeAppender byteCodeAppender)
Prepends the given method appender to this entry.
|
String |
toString() |
applypublic ForAnnotationDefaultValue(Object annotationValue, MethodAttributeAppender methodAttributeAppender, ModifierResolver modifierResolver)
annotationValue - The annotation value to define.methodAttributeAppender - The method attribute appender to apply.modifierResolver - The modifier resolver to apply to the method that is being created.public TypeWriter.MethodPool.Entry.Sort getSort()
TypeWriter.MethodPool.Entrypublic ModifierResolver getModifierResolver()
TypeWriter.MethodPool.Entrypublic void applyHead(MethodVisitor methodVisitor, MethodDescription methodDescription)
TypeWriter.MethodPool.EntryTypeWriter.MethodPool.Entry.Sort.SKIP.methodVisitor - The method visitor to which this entry should be applied.methodDescription - The method description of the instrumented method.public void applyBody(MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription methodDescription)
TypeWriter.MethodPool.EntryTypeWriter.MethodPool.Entry.Sort.IMPLEMENT.methodVisitor - The method visitor to which this entry should be applied.implementationContext - The implementation context to which this entry should be applied.methodDescription - The method description of the instrumented method.public TypeWriter.MethodPool.Entry prepend(ByteCodeAppender byteCodeAppender)
TypeWriter.MethodPool.EntrybyteCodeAppender - The byte code appender to prepend.Copyright © 2014–2015. All rights reserved.