public static enum MethodAttributeAppender.ForInstrumentedMethod extends Enum<MethodAttributeAppender.ForInstrumentedMethod> implements MethodAttributeAppender, MethodAttributeAppender.Factory
MethodAttributeAppender.Compound, MethodAttributeAppender.Factory, MethodAttributeAppender.ForAnnotation, MethodAttributeAppender.ForInstrumentedMethod, MethodAttributeAppender.ForLoadedConstructor, MethodAttributeAppender.ForLoadedMethod, MethodAttributeAppender.NoOpMethodAttributeAppender.Factory.Compound| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(org.objectweb.asm.MethodVisitor methodVisitor,
MethodDescription methodDescription)
Applies this attribute appender to a given method visitor.
|
MethodAttributeAppender |
make(TypeDescription typeDescription)
Returns a method attribute appender that is applicable for a given type description.
|
String |
toString() |
static MethodAttributeAppender.ForInstrumentedMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodAttributeAppender.ForInstrumentedMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodAttributeAppender.ForInstrumentedMethod INSTANCE
public static MethodAttributeAppender.ForInstrumentedMethod[] values()
for (MethodAttributeAppender.ForInstrumentedMethod c : MethodAttributeAppender.ForInstrumentedMethod.values()) System.out.println(c);
public static MethodAttributeAppender.ForInstrumentedMethod 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 void apply(org.objectweb.asm.MethodVisitor methodVisitor,
MethodDescription methodDescription)
MethodAttributeAppenderapply in interface MethodAttributeAppendermethodVisitor - The method visitor to which the attributes that are represented by this attribute
appender are written to.methodDescription - The description of the method for which the given method visitor creates an
instrumentation for.public MethodAttributeAppender make(TypeDescription typeDescription)
MethodAttributeAppender.Factorymake in interface MethodAttributeAppender.FactorytypeDescription - The type for which a method attribute appender is to be applied for.public String toString()
toString in class Enum<MethodAttributeAppender.ForInstrumentedMethod>Copyright © 2014–2015. All rights reserved.