public static class TypeWriter.MethodPool.Entry.Simple extends Object implements TypeWriter.MethodPool.Entry
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.TypeWriter.MethodPool.Entry.Factory, TypeWriter.MethodPool.Entry.Simple, TypeWriter.MethodPool.Entry.Skip| Constructor and Description |
|---|
Simple(ByteCodeAppender byteCodeAppender,
MethodAttributeAppender methodAttributeAppender)
Creates a new simple entry of a method pool.
|
| 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.
|
boolean |
equals(Object other) |
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.
|
int |
hashCode() |
boolean |
isDefineMethod()
Determines if this entry requires a method to be defined for a given instrumentation.
|
String |
toString() |
public Simple(ByteCodeAppender byteCodeAppender, MethodAttributeAppender methodAttributeAppender)
byteCodeAppender - The byte code appender that is represented by this entry.methodAttributeAppender - The method attribute appender that is represented by this entry.public boolean isDefineMethod()
TypeWriter.MethodPool.EntryisDefineMethod in interface TypeWriter.MethodPool.Entrytrue if a method should be defined for a given instrumentation.public ByteCodeAppender getByteCodeAppender()
TypeWriter.MethodPool.EntryTypeWriter.MethodPool.Entry.isDefineMethod()
returns false.getByteCodeAppender in interface TypeWriter.MethodPool.Entrypublic MethodAttributeAppender getAttributeAppender()
TypeWriter.MethodPool.EntryTypeWriter.MethodPool.Entry.isDefineMethod()
returns false.getAttributeAppender in interface TypeWriter.MethodPool.Entrypublic void apply(org.objectweb.asm.ClassVisitor classVisitor,
Instrumentation.Context instrumentationContext,
MethodDescription methodDescription)
TypeWriter.MethodPool.Entryapply in interface TypeWriter.MethodPool.EntryclassVisitor - 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.