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 |
|---|---|
boolean |
equals(Object other) |
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.
|
int |
hashCode() |
String |
toString() |
ClassVisitor |
wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
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 ClassVisitor wrap(TypeDescription instrumentedType, ClassVisitor classVisitor, int writerFlags, int readerFlags)
AsmVisitorWrapperClassVisitorWrapper 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.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–2016. All rights reserved.