public interface ClassVisitorWrapper
ClassVisitor
which
is applied to the main type created by a DynamicType.Builder
but not
to any AuxiliaryType
s, if any.Modifier and Type | Interface and Description |
---|---|
static class |
ClassVisitorWrapper.Chain
An ordered, immutable chain of
ClassVisitorWrapper s. |
Modifier and Type | Method and Description |
---|---|
int |
mergeReader(int hint)
Defines a hint that is provided to any
ClassReader when reading a class if applicable. |
int |
mergeWriter(int hint)
Defines a hint that is provided to any
ClassWriter when writing a class. |
ClassVisitor |
wrap(ClassVisitor classVisitor)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
int mergeWriter(int hint)
ClassWriter
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 hints are required for
applying this wrapper, the given value is to be returned.hint
- The current hint. This value should be merged (e.g. hint | foo
) into the value that is returned by this wrapper.ClassWriter
.int mergeReader(int hint)
ClassReader
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 hints are required for applying this
wrapper, the given value is to be returned.hint
- The current hint. This value should be merged (e.g. hint | foo
) into the value that is returned by this wrapper.ClassReader
.ClassVisitor wrap(ClassVisitor classVisitor)
ClassVisitorWrapper
to the creation of a DynamicType
.classVisitor
- A ClassVisitor
to become the new primary class visitor to which the created
DynamicType
is written to.ClassVisitor
that usually delegates to the ClassVisitor
delivered in the argument.Copyright © 2014–2015. All rights reserved.