org.objectweb.asm.util.attrs
Class ASMSourceDebugExtensionAttribute

java.lang.Object
  extended byorg.objectweb.asm.Attribute
      extended byorg.objectweb.asm.attrs.SourceDebugExtensionAttribute
          extended byorg.objectweb.asm.util.attrs.ASMSourceDebugExtensionAttribute
All Implemented Interfaces:
ASMifiable

public class ASMSourceDebugExtensionAttribute
extends SourceDebugExtensionAttribute
implements ASMifiable

An ASMifiable SourceDebugExtensionAttribute sub class.

Author:
Eugene Kuleshov

Field Summary
 
Fields inherited from class org.objectweb.asm.attrs.SourceDebugExtensionAttribute
debugExtension
 
Fields inherited from class org.objectweb.asm.Attribute
next, type
 
Constructor Summary
ASMSourceDebugExtensionAttribute()
           
 
Method Summary
 void asmify(StringBuffer buf, String varName, Map labelNames)
          Prints the ASM code to create an attribute equal to this attribute.
protected  Attribute read(ClassReader cr, int off, int len, char[] buf, int codeOff, Label[] labels)
          Reads a type attribute.
 
Methods inherited from class org.objectweb.asm.attrs.SourceDebugExtensionAttribute
toString, write
 
Methods inherited from class org.objectweb.asm.Attribute
getLabels, isUnknown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASMSourceDebugExtensionAttribute

public ASMSourceDebugExtensionAttribute()
Method Detail

read

protected Attribute read(ClassReader cr,
                         int off,
                         int len,
                         char[] buf,
                         int codeOff,
                         Label[] labels)
Description copied from class: Attribute
Reads a type attribute. This method must return a new Attribute object, of type type, corresponding to the len bytes starting at the given offset, in the given class reader.

Overrides:
read in class SourceDebugExtensionAttribute

asmify

public void asmify(StringBuffer buf,
                   String varName,
                   Map labelNames)
Description copied from interface: ASMifiable
Prints the ASM code to create an attribute equal to this attribute.

Specified by:
asmify in interface ASMifiable
Parameters:
buf - A buffer used for printing Java code.
varName - name of the variable in a printed code used to store attribute instance.
labelNames - map of label instances to their names.