Package | Description |
---|---|
net.bytebuddy.implementation.attribute |
All types and classes in this package are responsible for writing attributes for a given Java byte code element,
i.e.
|
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationValueFilter.Default
A default implementation of an annotation value filter that applies the same strategy for any type, field or method.
|
Modifier and Type | Method and Description |
---|---|
AnnotationValueFilter |
AnnotationValueFilter.Factory.on(FieldDescription fieldDescription)
Creates an annotation value filter for writing annotations on a field.
|
AnnotationValueFilter |
AnnotationValueFilter.Default.on(FieldDescription fieldDescription)
Creates an annotation value filter for writing annotations on a field.
|
AnnotationValueFilter |
AnnotationValueFilter.Factory.on(MethodDescription methodDescription)
Creates an annotation value filter for writing annotations on a method.
|
AnnotationValueFilter |
AnnotationValueFilter.Default.on(MethodDescription methodDescription)
Creates an annotation value filter for writing annotations on a method.
|
AnnotationValueFilter |
AnnotationValueFilter.Factory.on(TypeDescription instrumentedType)
Creates an annotation value filter for writing annotations on an instrumented type.
|
AnnotationValueFilter |
AnnotationValueFilter.Default.on(TypeDescription instrumentedType)
Creates an annotation value filter for writing annotations on an instrumented type.
|
Modifier and Type | Method and Description |
---|---|
AnnotationAppender |
AnnotationAppender.append(AnnotationDescription annotationDescription,
AnnotationValueFilter annotationValueFilter)
Writes the given annotation to the target that this appender represents.
|
AnnotationAppender |
AnnotationAppender.Default.append(AnnotationDescription annotationDescription,
AnnotationValueFilter annotationValueFilter)
Writes the given annotation to the target that this appender represents.
|
AnnotationAppender |
AnnotationAppender.append(AnnotationDescription annotationDescription,
AnnotationValueFilter annotationValueFilter,
int typeReference,
String typePath)
Writes the given type annotation to the target that this appender represents.
|
AnnotationAppender |
AnnotationAppender.Default.append(AnnotationDescription annotationDescription,
AnnotationValueFilter annotationValueFilter,
int typeReference,
String typePath)
Writes the given type annotation to the target that this appender represents.
|
protected abstract AnnotationAppender |
MethodAttributeAppender.ForInstrumentedMethod.appendReceiver(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter,
MethodDescription methodDescription)
Appends the annotations of the instrumented method's receiver type if this is enabled and such a type exists.
|
void |
TypeAttributeAppender.apply(ClassVisitor classVisitor,
TypeDescription instrumentedType,
AnnotationValueFilter annotationValueFilter)
Applies this type attribute appender.
|
void |
TypeAttributeAppender.NoOp.apply(ClassVisitor classVisitor,
TypeDescription instrumentedType,
AnnotationValueFilter annotationValueFilter)
Applies this type attribute appender.
|
void |
TypeAttributeAppender.ForInstrumentedType.apply(ClassVisitor classVisitor,
TypeDescription instrumentedType,
AnnotationValueFilter annotationValueFilter)
Applies this type attribute appender.
|
void |
TypeAttributeAppender.ForInstrumentedType.Differentiating.apply(ClassVisitor classVisitor,
TypeDescription instrumentedType,
AnnotationValueFilter annotationValueFilter)
Applies this type attribute appender.
|
void |
TypeAttributeAppender.Explicit.apply(ClassVisitor classVisitor,
TypeDescription instrumentedType,
AnnotationValueFilter annotationValueFilter)
Applies this type attribute appender.
|
void |
TypeAttributeAppender.Compound.apply(ClassVisitor classVisitor,
TypeDescription instrumentedType,
AnnotationValueFilter annotationValueFilter)
Applies this type attribute appender.
|
void |
FieldAttributeAppender.apply(FieldVisitor fieldVisitor,
FieldDescription fieldDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given field visitor.
|
void |
FieldAttributeAppender.NoOp.apply(FieldVisitor fieldVisitor,
FieldDescription fieldDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given field visitor.
|
void |
FieldAttributeAppender.ForInstrumentedField.apply(FieldVisitor fieldVisitor,
FieldDescription fieldDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given field visitor.
|
void |
FieldAttributeAppender.Explicit.apply(FieldVisitor fieldVisitor,
FieldDescription fieldDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given field visitor.
|
void |
FieldAttributeAppender.Compound.apply(FieldVisitor fieldVisitor,
FieldDescription fieldDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given field visitor.
|
void |
MethodAttributeAppender.apply(MethodVisitor methodVisitor,
MethodDescription methodDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given method visitor.
|
void |
MethodAttributeAppender.NoOp.apply(MethodVisitor methodVisitor,
MethodDescription methodDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given method visitor.
|
void |
MethodAttributeAppender.ForInstrumentedMethod.apply(MethodVisitor methodVisitor,
MethodDescription methodDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given method visitor.
|
void |
MethodAttributeAppender.Explicit.apply(MethodVisitor methodVisitor,
MethodDescription methodDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given method visitor.
|
void |
MethodAttributeAppender.ForReceiverType.apply(MethodVisitor methodVisitor,
MethodDescription methodDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given method visitor.
|
void |
MethodAttributeAppender.Compound.apply(MethodVisitor methodVisitor,
MethodDescription methodDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given method visitor.
|
static TypeDescription.Generic.Visitor<AnnotationAppender> |
AnnotationAppender.ForTypeAnnotations.ofExceptionType(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter,
int index)
Creates a type annotation appender for type annotations of a method's exception type.
|
static TypeDescription.Generic.Visitor<AnnotationAppender> |
AnnotationAppender.ForTypeAnnotations.ofFieldType(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter)
Creates a type annotation appender for type annotations of a field's type.
|
static TypeDescription.Generic.Visitor<AnnotationAppender> |
AnnotationAppender.ForTypeAnnotations.ofInterfaceType(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter,
int index)
Creates a type annotation appender for type annotations of an interface type.
|
static TypeDescription.Generic.Visitor<AnnotationAppender> |
AnnotationAppender.ForTypeAnnotations.ofMethodParameterType(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter,
int index)
Creates a type annotation appender for type annotations of a method's parameter type.
|
static TypeDescription.Generic.Visitor<AnnotationAppender> |
AnnotationAppender.ForTypeAnnotations.ofMethodReturnType(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter)
Creates a type annotation appender for type annotations of a method's return type.
|
static TypeDescription.Generic.Visitor<AnnotationAppender> |
AnnotationAppender.ForTypeAnnotations.ofReceiverType(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter)
Creates a type annotation appender for type annotations of a method's receiver type.
|
static TypeDescription.Generic.Visitor<AnnotationAppender> |
AnnotationAppender.ForTypeAnnotations.ofSuperClass(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter)
Creates a type annotation appender for a type annotations of a super class type.
|
static AnnotationAppender |
AnnotationAppender.ForTypeAnnotations.ofTypeVariable(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter,
boolean variableOnType,
int subListIndex,
List<? extends TypeDescription.Generic> typeVariables)
Appends all supplied type variables to the supplied method appender.
|
static AnnotationAppender |
AnnotationAppender.ForTypeAnnotations.ofTypeVariable(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter,
boolean variableOnType,
List<? extends TypeDescription.Generic> typeVariables)
Appends all supplied type variables to the supplied method appender.
|
Constructor and Description |
---|
ForTypeAnnotations(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter,
int typeReference,
String typePath)
Creates a new type annotation appending visitor.
|
ForTypeAnnotations(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter,
TypeReference typeReference)
Creates a new type annotation appending visitor for an empty type path.
|
Copyright © 2014–2019. All rights reserved.