gnu.bytecode
Class SourceDebugExtAttr
public class SourceDebugExtAttr
Represents the contents of a JSR-45 "SourceDebugExtension" attribute.
We only support generating a single "stratum".
addToFrontOf , assignConstants , assignConstants , count , get , getContainer , getLength , getLengthAll , getName , getNameIndex , getNext , isSkipped , print , setContainer , setName , setNameIndex , setNext , setSkipped , setSkipped , write , writeAll |
SourceDebugExtAttr
public SourceDebugExtAttr(ClassType cl)
Add a new InnerClassesAttr to a ClassType.
addStratum
public void addStratum(String name)
getLength
public int getLength()
Return the length of the attribute in bytes.
Does not include the 6-byte header (for the name_index and the length).
- getLength in interface Attribute
write
public void write(java.io.DataOutputStream dstr)
throws java.io.IOException
Write out the contents of the Attribute.
Does not write the 6-byte attribute header.