@HashCodeAndEqualsPlugin.Enhance public static class AsmVisitorWrapper.ForDeclaredFields extends AsmVisitorWrapper.AbstractBase
AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper.| Modifier and Type | Class and Description |
|---|---|
protected class |
AsmVisitorWrapper.ForDeclaredFields.DispatchingVisitor
A class visitor that applies the outer ASM visitor for identifying declared fields.
|
protected static class |
AsmVisitorWrapper.ForDeclaredFields.Entry
An entry describing a field visitor wrapper paired with a matcher for fields to be wrapped.
|
static interface |
AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper
A field visitor wrapper that allows for wrapping a
FieldVisitor defining a declared field. |
AsmVisitorWrapper.AbstractBase, AsmVisitorWrapper.Compound, AsmVisitorWrapper.ForDeclaredFields, AsmVisitorWrapper.ForDeclaredMethods, AsmVisitorWrapper.NoOpNO_FLAGS| Modifier | Constructor and Description |
|---|---|
|
ForDeclaredFields()
Creates a new visitor wrapper for declared fields.
|
protected |
ForDeclaredFields(List<AsmVisitorWrapper.ForDeclaredFields.Entry> entries)
Creates a new visitor wrapper for declared fields.
|
| Modifier and Type | Method and Description |
|---|---|
AsmVisitorWrapper.ForDeclaredFields |
field(ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper... fieldVisitorWrapper)
Defines a new field visitor wrapper to be applied if the given field matcher is matched.
|
AsmVisitorWrapper.ForDeclaredFields |
field(ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
List<? extends AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper> fieldVisitorWrappers)
Defines a new field visitor wrapper to be applied if the given field matcher is matched.
|
ClassVisitor |
wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType. |
mergeReader, mergeWriterpublic ForDeclaredFields()
protected ForDeclaredFields(List<AsmVisitorWrapper.ForDeclaredFields.Entry> entries)
entries - The list of entries that describe matched fields in their application order.public AsmVisitorWrapper.ForDeclaredFields field(ElementMatcher<? super FieldDescription.InDefinedShape> matcher, AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper... fieldVisitorWrapper)
matcher - The matcher to identify fields to be wrapped.fieldVisitorWrapper - The field visitor wrapper to be applied if the given matcher is matched.public AsmVisitorWrapper.ForDeclaredFields field(ElementMatcher<? super FieldDescription.InDefinedShape> matcher, List<? extends AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper> fieldVisitorWrappers)
matcher - The matcher to identify fields to be wrapped.fieldVisitorWrappers - The field visitor wrapper to be applied if the given matcher is matched.public ClassVisitor wrap(TypeDescription instrumentedType, ClassVisitor classVisitor, Implementation.Context implementationContext, TypePool typePool, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, int writerFlags, int readerFlags)
ClassVisitorWrapper to the creation of a DynamicType.instrumentedType - The instrumented type.classVisitor - A ClassVisitor to become the new primary class visitor to which the created
DynamicType is written to.implementationContext - The implementation context of the current instrumentation.typePool - The type pool that was provided for the class creation.fields - The instrumented type's fields.methods - The instrumented type's methods non-ignored declared and virtually inherited methods.writerFlags - The ASM ClassWriter flags to consider.readerFlags - The ASM ClassReader flags to consider.ClassVisitor that usually delegates to the ClassVisitor delivered in the argument.Copyright © 2014–2023. All rights reserved.