public static interface TypeWriter.MethodPool.Entry
TypeWriter.MethodPool| Modifier and Type | Interface and Description |
|---|---|
static interface |
TypeWriter.MethodPool.Entry.Factory
A factory for creating a
TypeWriter.MethodPool.Entry. |
static class |
TypeWriter.MethodPool.Entry.Simple
A default implementation of
TypeWriter.MethodPool.Entry
that is not to be ignored but is represented by a tuple of a byte code appender and a method attribute appender. |
static class |
TypeWriter.MethodPool.Entry.Skip
A skip entry that instructs to ignore a method.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(org.objectweb.asm.ClassVisitor classVisitor,
Instrumentation.Context instrumentationContext,
MethodDescription methodDescription)
Writes the method that is represented by this entry to the provided class visitor.
|
MethodAttributeAppender |
getAttributeAppender()
The method attribute appender that is to be used for the instrumentation by this entry.
|
ByteCodeAppender |
getByteCodeAppender()
The byte code appender to be used for the instrumentation by this entry.
|
boolean |
isDefineMethod()
Determines if this entry requires a method to be defined for a given instrumentation.
|
boolean isDefineMethod()
true if a method should be defined for a given instrumentation.ByteCodeAppender getByteCodeAppender()
isDefineMethod()
returns false.MethodAttributeAppender getAttributeAppender()
isDefineMethod()
returns false.void apply(org.objectweb.asm.ClassVisitor classVisitor,
Instrumentation.Context instrumentationContext,
MethodDescription methodDescription)
classVisitor - The class visitor to which this entry is to be written to.instrumentationContext - The instrumentation context to use for writing this method.methodDescription - A description of the method that is to be writtenCopyright © 2014. All rights reserved.