public static class TypeWriter.MethodPool.Record.ForDefinedMethod.WithAnnotationDefaultValue extends TypeWriter.MethodPool.Record.ForDefinedMethod
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge, TypeWriter.MethodPool.Record.ForDefinedMethod.WithAnnotationDefaultValue, TypeWriter.MethodPool.Record.ForDefinedMethod.WithBody, TypeWriter.MethodPool.Record.ForDefinedMethod.WithoutBody
TypeWriter.MethodPool.Record.AccessBridgeWrapper, TypeWriter.MethodPool.Record.ForDefinedMethod, TypeWriter.MethodPool.Record.ForNonDefinedMethod, TypeWriter.MethodPool.Record.Sort
Constructor and Description |
---|
WithAnnotationDefaultValue(MethodDescription methodDescription,
Object annotationValue,
MethodAttributeAppender methodAttributeAppender)
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)
Applies the body of this entry.
|
void |
applyHead(MethodVisitor methodVisitor)
Applies the head of this entry.
|
boolean |
equals(Object other) |
MethodDescription |
getImplementedMethod()
Returns the method that is implemented where the returned method ressembles a potential transformation.
|
TypeWriter.MethodPool.Record.Sort |
getSort()
Returns the sort of this method instrumentation.
|
int |
hashCode() |
TypeWriter.MethodPool.Record |
prepend(ByteCodeAppender byteCodeAppender)
Prepends the given method appender to this entry.
|
String |
toString() |
apply
public WithAnnotationDefaultValue(MethodDescription methodDescription, Object annotationValue, MethodAttributeAppender methodAttributeAppender)
methodDescription
- The implemented method.annotationValue
- The annotation value to define.methodAttributeAppender
- The method attribute appender to apply.public MethodDescription getImplementedMethod()
TypeWriter.MethodPool.Record
TypeWriter.MethodPool.Record.Sort.SKIPPED
.public TypeWriter.MethodPool.Record.Sort getSort()
TypeWriter.MethodPool.Record
public void applyHead(MethodVisitor methodVisitor)
TypeWriter.MethodPool.Record
TypeWriter.MethodPool.Record.Sort.SKIPPED
.methodVisitor
- The method visitor to which this entry should be applied.public void applyBody(MethodVisitor methodVisitor, Implementation.Context implementationContext)
TypeWriter.MethodPool.Record
TypeWriter.MethodPool.Record.Sort.IMPLEMENTED
.methodVisitor
- The method visitor to which this entry should be applied.implementationContext
- The implementation context to which this entry should be applied.public TypeWriter.MethodPool.Record prepend(ByteCodeAppender byteCodeAppender)
TypeWriter.MethodPool.Record
byteCodeAppender
- The byte code appender to prepend.Copyright © 2014–2015. All rights reserved.