org.mockito.cglib.core
Class DebuggingClassWriter

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

public class DebuggingClassWriter
extends ClassWriter


Field Summary
static java.lang.String DEBUG_LOCATION_PROPERTY
           
 
Fields inherited from class org.mockito.asm.ClassWriter
COMPUTE_FRAMES, COMPUTE_MAXS
 
Constructor Summary
DebuggingClassWriter(int flags)
           
 
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 version, int access, java.lang.String name, java.lang.String signature, java.lang.String superName, java.lang.String[] interfaces)
          Visits the header of the class.
 
Methods inherited from class org.mockito.asm.ClassWriter
getCommonSuperClass, newClass, newConst, newField, newMethod, newNameType, newUTF8, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, visitOuterClass, visitSource
 
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
Constructor Detail

DebuggingClassWriter

public DebuggingClassWriter(int flags)
Method Detail

visit

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

Specified by:
visit in interface ClassVisitor
Overrides:
visit in class ClassWriter
Parameters:
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.

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.