public class DebuggingClassWriter extends ClassWriter
Modifier and Type | Field and Description |
---|---|
static String |
DEBUG_LOCATION_PROPERTY |
COMPUTE_FRAMES, COMPUTE_MAXS
Constructor and Description |
---|
DebuggingClassWriter(int flags) |
Modifier and Type | Method and Description |
---|---|
String |
getClassName() |
String |
getSuperName() |
byte[] |
toByteArray()
Returns the bytecode of the class that was build with this class writer.
|
void |
visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces)
Visits the header of the class.
|
getCommonSuperClass, newClass, newConst, newField, newMethod, newNameType, newUTF8, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, visitOuterClass, visitSource
public static final String DEBUG_LOCATION_PROPERTY
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
ClassVisitor
visit
in interface ClassVisitor
visit
in class ClassWriter
version
- the class version.access
- the class's access flags (see Opcodes
). This
parameter also indicates if the class is deprecated.name
- the internal name of the class (see
getInternalName
).signature
- the signature of this class. May be null if
the class is not a generic one, and does not extend or implement
generic classes or interfaces.superName
- the internal of name of the super class (see
getInternalName
). For interfaces,
the super class is Object
. May be null, but
only for the Object
class.interfaces
- the internal names of the class's interfaces (see
getInternalName
). May be
null.public String getClassName()
public String getSuperName()
public byte[] toByteArray()
ClassWriter
toByteArray
in class ClassWriter
Copyright © 2018. All rights reserved.