public static enum ClassVisitorWrapper.NoOp extends Enum<ClassVisitorWrapper.NoOp> implements ClassVisitorWrapper
ClassVisitorWrapper.Compound, ClassVisitorWrapper.NoOp
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
int |
mergeReader(int flags)
Defines the flags that are provided to any
ClassReader when reading a class if applicable. |
int |
mergeWriter(int flags)
Defines the flags that are provided to any
ClassWriter when writing a class. |
String |
toString() |
static ClassVisitorWrapper.NoOp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClassVisitorWrapper.NoOp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
ClassVisitor |
wrap(ClassVisitor classVisitor)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
public static final ClassVisitorWrapper.NoOp INSTANCE
public static ClassVisitorWrapper.NoOp[] values()
for (ClassVisitorWrapper.NoOp c : ClassVisitorWrapper.NoOp.values()) System.out.println(c);
public static ClassVisitorWrapper.NoOp valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int mergeWriter(int flags)
ClassVisitorWrapper
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 flags are required for
applying this wrapper, the given value is to be returned.mergeWriter
in interface ClassVisitorWrapper
flags
- The currently set flags. This value should be combined (e.g. flags | foo
) into the value that is returned by this wrapper.ClassWriter
.public int mergeReader(int flags)
ClassVisitorWrapper
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 flags are required for applying this
wrapper, the given value is to be returned.mergeReader
in interface ClassVisitorWrapper
flags
- The currently set flags. This value should be combined (e.g. flags | foo
) into the value that is returned by this wrapper.ClassReader
.public ClassVisitor wrap(ClassVisitor classVisitor)
ClassVisitorWrapper
ClassVisitorWrapper
to the creation of a DynamicType
.wrap
in interface ClassVisitorWrapper
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.public String toString()
toString
in class Enum<ClassVisitorWrapper.NoOp>
Copyright © 2014–2015. All rights reserved.