protected static enum SafeVarargsPlugin.SafeVarargsAppender extends Enum<SafeVarargsPlugin.SafeVarargsAppender> implements MethodAttributeAppender, MethodAttributeAppender.Factory
MethodAttributeAppender.Compound, MethodAttributeAppender.Explicit, MethodAttributeAppender.Factory, MethodAttributeAppender.ForInstrumentedMethod, MethodAttributeAppender.ForReceiverType, MethodAttributeAppender.NoOp
MethodAttributeAppender.Factory.Compound
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(MethodVisitor methodVisitor,
MethodDescription methodDescription,
AnnotationValueFilter annotationValueFilter)
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.
|
static SafeVarargsPlugin.SafeVarargsAppender |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SafeVarargsPlugin.SafeVarargsAppender[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SafeVarargsPlugin.SafeVarargsAppender INSTANCE
public static SafeVarargsPlugin.SafeVarargsAppender[] values()
for (SafeVarargsPlugin.SafeVarargsAppender c : SafeVarargsPlugin.SafeVarargsAppender.values()) System.out.println(c);
public static SafeVarargsPlugin.SafeVarargsAppender 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 MethodAttributeAppender make(TypeDescription typeDescription)
make
in interface MethodAttributeAppender.Factory
typeDescription
- The type for which a method attribute appender is to be applied for.public void apply(MethodVisitor methodVisitor, MethodDescription methodDescription, AnnotationValueFilter annotationValueFilter)
apply
in interface MethodAttributeAppender
methodVisitor
- 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.annotationValueFilter
- The annotation value filter to apply when the annotations are written.Copyright © 2014–2025. All rights reserved.