Top Description Inners Fields Methods
org.easymock.bytebuddy.asm

public Interface AsmVisitorWrapper

Known Direct Implementers
org.easymock.bytebuddy.asm.AsmVisitorWrapper.NoOp, org.easymock.bytebuddy.asm.AsmVisitorWrapper.AbstractBase, org.easymock.bytebuddy.asm.AsmVisitorWrapper.ForDeclaredMethods, org.easymock.bytebuddy.asm.AsmVisitorWrapper.Compound, org.easymock.bytebuddy.asm.TypeConstantAdjustment
Imports
org.easymock.bytebuddy.build.HashCodeAndEqualsPlugin, org.easymock.bytebuddy.description.field.FieldDescription, .FieldList, org.easymock.bytebuddy.description.method.MethodDescription, .MethodList, org.easymock.bytebuddy.description.type.TypeDescription, org.easymock.bytebuddy.implementation.Implementation, org.easymock.bytebuddy.matcher.ElementMatcher, org.easymock.bytebuddy.pool.TypePool, org.easymock.bytebuddy.utility.CompoundList, .OpenedClassReader, org.easymock.bytebuddy.utility.nullability.MaybeNull, org.easymock.bytebuddy.jar.asm.ClassVisitor, .FieldVisitor, .MethodVisitor, java.util.*

A class visitor wrapper is used in order to register an intermediate ASM org.easymock.bytebuddy.jar.asm.ClassVisitor which is applied to the main type created by a org.easymock.bytebuddy.dynamic.DynamicType.Builder but not to any org.easymock.bytebuddy.implementation.auxiliary.AuxiliaryTypes, if any.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
AsmVisitorWrapper.AbstractBase

An abstract base implementation of an ASM visitor wrapper that does not set any flags.

public static class
AsmVisitorWrapper.Compound

An ordered, immutable chain of AsmVisitorWrappers.

public static class
AsmVisitorWrapper.ForDeclaredFields

An ASM visitor wrapper that allows to wrap declared fields of the instrumented type with a FieldVisitorWrapper.

public static class
AsmVisitorWrapper.ForDeclaredMethods

An ASM visitor wrapper that allows to wrap declared methods of the instrumented type with a MethodVisitorWrapper.

public static enum
AsmVisitorWrapper.NoOp

A class visitor wrapper that does not apply any changes.

Field Summary

Modifier and TypeField and Description
public static final int
NO_FLAGS

Indicates that no flags should be set.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The flags to be provided to the ASM ClassReader.
mergeReader
(int
The currently set flags. This value should be combined (e.g. flags | foo) into the value that is returned by this wrapper.
flags
)

Defines the flags that are provided to any ClassReader when reading a class if applicable.

public int

Returns:

The flags to be provided to the ASM ClassWriter.
mergeWriter
(int
The currently set flags. This value should be combined (e.g. flags | foo) into the value that is returned by this wrapper.
flags
)

Defines the flags that are provided to any ClassWriter when writing a class.

public ClassVisitor

Returns:

A new ClassVisitor that usually delegates to the ClassVisitor delivered in the argument.
wrap
(TypeDescription
The instrumented type.
instrumentedType
,
ClassVisitor
A ClassVisitor to become the new primary class visitor to which the created org.easymock.bytebuddy.dynamic.DynamicType is written to.
classVisitor
,
Implementation.Context
The implementation context of the current instrumentation.
implementationContext
,
TypePool
The type pool that was provided for the class creation.
typePool
,
FieldList<FieldDescription.InDefinedShape>
The instrumented type's fields.
fields
,
MethodList<?>
The instrumented type's methods non-ignored declared and virtually inherited methods.
methods
,
int writerFlags, int readerFlags)

Applies a ClassVisitorWrapper to the creation of a org.easymock.bytebuddy.dynamic.DynamicType.