public static enum FieldAttributeAppender.ForInstrumentedField extends Enum<FieldAttributeAppender.ForInstrumentedField> implements FieldAttributeAppender, FieldAttributeAppender.Factory
FieldAttributeAppender.Compound, FieldAttributeAppender.Explicit, FieldAttributeAppender.Factory, FieldAttributeAppender.ForInstrumentedField, FieldAttributeAppender.NoOp
FieldAttributeAppender.Factory.Compound
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(FieldVisitor fieldVisitor,
FieldDescription fieldDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given field visitor.
|
FieldAttributeAppender |
make(TypeDescription typeDescription)
Returns a field attribute appender that is applicable for a given type description.
|
static FieldAttributeAppender.ForInstrumentedField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldAttributeAppender.ForInstrumentedField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldAttributeAppender.ForInstrumentedField INSTANCE
public static FieldAttributeAppender.ForInstrumentedField[] values()
for (FieldAttributeAppender.ForInstrumentedField c : FieldAttributeAppender.ForInstrumentedField.values()) System.out.println(c);
public static FieldAttributeAppender.ForInstrumentedField 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(FieldVisitor fieldVisitor, FieldDescription fieldDescription, AnnotationValueFilter annotationValueFilter)
FieldAttributeAppender
apply
in interface FieldAttributeAppender
fieldVisitor
- The field visitor to which the attributes that are represented by this attribute appender are written to.fieldDescription
- The description of the field to which the field visitor belongs to.annotationValueFilter
- The annotation value filter to apply when writing annotations.public FieldAttributeAppender make(TypeDescription typeDescription)
FieldAttributeAppender.Factory
make
in interface FieldAttributeAppender.Factory
typeDescription
- The type for which a field attribute appender is to be applied for.Copyright © 2014–2018. All rights reserved.