public static interface TypeWriter.MethodPool.Record
TypeWriter.MethodPool
Modifier and Type | Interface and Description |
---|---|
static class |
TypeWriter.MethodPool.Record.AccessBridgeWrapper
A wrapper that appends accessor bridges for a method's implementation.
|
static class |
TypeWriter.MethodPool.Record.ForDefinedMethod
A base implementation of an abstract entry that defines a method.
|
static class |
TypeWriter.MethodPool.Record.ForNonImplementedMethod
A canonical implementation of a method that is not declared but inherited by the instrumented type.
|
static class |
TypeWriter.MethodPool.Record.Sort
The sort of an entry.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(ClassVisitor classVisitor,
Implementation.Context implementationContext,
AnnotationValueFilter.Factory annotationValueFilterFactory)
Applies this method entry.
|
void |
applyAttributes(MethodVisitor methodVisitor,
AnnotationValueFilter.Factory annotationValueFilterFactory)
Applies the attributes of this entry.
|
void |
applyBody(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
AnnotationValueFilter.Factory annotationValueFilterFactory)
Applies the body of this entry.
|
ByteCodeAppender.Size |
applyCode(MethodVisitor methodVisitor,
Implementation.Context implementationContext)
Applies the code of this entry.
|
void |
applyHead(MethodVisitor methodVisitor)
Applies the head of this entry.
|
MethodDescription |
getMethod()
Returns the method that is implemented where the returned method resembles a potential transformation.
|
TypeWriter.MethodPool.Record.Sort |
getSort()
Returns the sort of this method instrumentation.
|
Visibility |
getVisibility()
The visibility to enforce for this method.
|
TypeWriter.MethodPool.Record |
prepend(ByteCodeAppender byteCodeAppender)
Prepends the given method appender to this entry.
|
TypeWriter.MethodPool.Record.Sort getSort()
MethodDescription getMethod()
TypeWriter.MethodPool.Record.Sort.SKIPPED
.Visibility getVisibility()
TypeWriter.MethodPool.Record prepend(ByteCodeAppender byteCodeAppender)
byteCodeAppender
- The byte code appender to prepend.void apply(ClassVisitor classVisitor, Implementation.Context implementationContext, AnnotationValueFilter.Factory annotationValueFilterFactory)
classVisitor
- The class visitor to which this entry should be applied.implementationContext
- The implementation context to which this entry should be applied.annotationValueFilterFactory
- The annotation value filter factory to apply when writing annotations.void applyHead(MethodVisitor methodVisitor)
TypeWriter.MethodPool.Record.Sort.SKIPPED
.methodVisitor
- The method visitor to which this entry should be applied.void applyBody(MethodVisitor methodVisitor, Implementation.Context implementationContext, AnnotationValueFilter.Factory annotationValueFilterFactory)
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.annotationValueFilterFactory
- The annotation value filter factory to apply when writing annotations.void applyAttributes(MethodVisitor methodVisitor, AnnotationValueFilter.Factory annotationValueFilterFactory)
TypeWriter.MethodPool.Record.Sort.DEFINED
.methodVisitor
- The method visitor to which this entry should be applied.annotationValueFilterFactory
- The annotation value filter factory to apply when writing annotations.ByteCodeAppender.Size applyCode(MethodVisitor methodVisitor, Implementation.Context implementationContext)
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.Copyright © 2014–2020. All rights reserved.