Package net.bytebuddy.asm
Class AsmVisitorWrapper.AbstractBase
java.lang.Object
net.bytebuddy.asm.AsmVisitorWrapper.AbstractBase
- All Implemented Interfaces:
AsmVisitorWrapper
- Direct Known Subclasses:
AsmVisitorWrapper.ForDeclaredFields
,MemberRemoval
,ModifierAdjustment
,TypeReferenceAdjustment
- Enclosing interface:
- AsmVisitorWrapper
public abstract static class AsmVisitorWrapper.AbstractBase
extends Object
implements AsmVisitorWrapper
An abstract base implementation of an ASM visitor wrapper that does not set any flags.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.asm.AsmVisitorWrapper
AsmVisitorWrapper.AbstractBase, AsmVisitorWrapper.Compound, AsmVisitorWrapper.ForDeclaredFields, AsmVisitorWrapper.ForDeclaredMethods, AsmVisitorWrapper.NoOp
-
Field Summary
Fields inherited from interface net.bytebuddy.asm.AsmVisitorWrapper
NO_FLAGS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
mergeReader
(int flags) Defines the flags that are provided to anyClassReader
when reading a class if applicable.int
mergeWriter
(int flags) Defines the flags that are provided to anyClassWriter
when writing a class.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.bytebuddy.asm.AsmVisitorWrapper
wrap
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
mergeWriter
public int mergeWriter(int flags) Defines the flags that are provided to anyClassWriter
when writing a class. Typically, this gives opportunity to instruct ASM to compute stack map frames or the size of the local variables array and the operand stack. If no specific flags are required for applying this wrapper, the given value is to be returned.- Specified by:
mergeWriter
in interfaceAsmVisitorWrapper
- Parameters:
flags
- The currently set flags. This value should be combined (e.g.flags | foo
) into the value that is returned by this wrapper.- Returns:
- The flags to be provided to the ASM
ClassWriter
.
-
mergeReader
public int mergeReader(int flags) Defines the flags that are provided to anyClassReader
when reading a class if applicable. Typically, this gives opportunity to instruct ASM to expand or skip frames and to skip code and debug information. If no specific flags are required for applying this wrapper, the given value is to be returned.- Specified by:
mergeReader
in interfaceAsmVisitorWrapper
- Parameters:
flags
- The currently set flags. This value should be combined (e.g.flags | foo
) into the value that is returned by this wrapper.- Returns:
- The flags to be provided to the ASM
ClassReader
.
-