org.logicalcobwebs.cglib.core
Class DebuggingClassWriter

java.lang.Object
  extended by org.logicalcobwebs.asm.ClassWriter
      extended by org.logicalcobwebs.cglib.core.DebuggingClassWriter
All Implemented Interfaces:
ClassVisitor

public class DebuggingClassWriter
extends ClassWriter


Field Summary
private  java.lang.String className
           
static java.lang.String DEBUG_LOCATION_PROPERTY
           
private static java.lang.String debugLocation
           
private  java.lang.String superName
           
private static boolean traceEnabled
           
 
Constructor Summary
DebuggingClassWriter(boolean computeMaxs)
           
 
Method Summary
 java.lang.String getClassName()
           
 java.lang.String getSuperName()
           
 byte[] toByteArray()
          Returns the bytecode of the class that was build with this class writer.
 void visit(int access, java.lang.String name, java.lang.String superName, java.lang.String[] interfaces, java.lang.String sourceFile)
          Visits the header of the class.
 
Methods inherited from class org.logicalcobwebs.asm.ClassWriter
newClass, newCst, newField, newMethod, newNameType, newUTF8, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, writeAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG_LOCATION_PROPERTY

public static final java.lang.String DEBUG_LOCATION_PROPERTY
See Also:
Constant Field Values

debugLocation

private static java.lang.String debugLocation

traceEnabled

private static boolean traceEnabled

className

private java.lang.String className

superName

private java.lang.String superName
Constructor Detail

DebuggingClassWriter

public DebuggingClassWriter(boolean computeMaxs)
Method Detail

visit

public void visit(int access,
                  java.lang.String name,
                  java.lang.String superName,
                  java.lang.String[] interfaces,
                  java.lang.String sourceFile)
Description copied from interface: ClassVisitor
Visits the header of the class.

Specified by:
visit in interface ClassVisitor
Overrides:
visit in class ClassWriter
Parameters:
access - the class's access flags (see Constants). This parameter also indicates if the class is deprecated.
name - the internal name of the class (see getInternalName).
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 java.lang.Object class.
interfaces - the internal names of the class's interfaces (see getInternalName). May be null.
sourceFile - the name of the source file from which this class was compiled. May be null.

getClassName

public java.lang.String getClassName()

getSuperName

public java.lang.String getSuperName()

toByteArray

public byte[] toByteArray()
Description copied from class: ClassWriter
Returns the bytecode of the class that was build with this class writer.

Overrides:
toByteArray in class ClassWriter
Returns:
the bytecode of the class that was build with this class writer.