public static enum TypeWriter.MethodPool.Entry.Skip extends Enum<TypeWriter.MethodPool.Entry.Skip> implements TypeWriter.MethodPool.Entry, TypeWriter.MethodPool.Entry.Factory
TypeWriter.MethodPool.Entry.Factory, TypeWriter.MethodPool.Entry.Simple, TypeWriter.MethodPool.Entry.Skip| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| 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.
|
TypeWriter.MethodPool.Entry |
compile(Instrumentation.Target instrumentationTarget)
Compiles a
TypeWriter.MethodPool.Entry. |
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.
|
static TypeWriter.MethodPool.Entry.Skip |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeWriter.MethodPool.Entry.Skip[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeWriter.MethodPool.Entry.Skip INSTANCE
public static TypeWriter.MethodPool.Entry.Skip[] values()
for (TypeWriter.MethodPool.Entry.Skip c : TypeWriter.MethodPool.Entry.Skip.values()) System.out.println(c);
public static TypeWriter.MethodPool.Entry.Skip valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic 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 writtenpublic TypeWriter.MethodPool.Entry compile(Instrumentation.Target instrumentationTarget)
TypeWriter.MethodPool.Entry.FactoryTypeWriter.MethodPool.Entry.compile in interface TypeWriter.MethodPool.Entry.FactoryinstrumentationTarget - The instrumentation target for which this factory is to be compiled.Copyright © 2014. All rights reserved.