gnu.bytecode

Class SourceDebugExtAttr

public class SourceDebugExtAttr extends Attribute

Represents the contents of a JSR-45 "SourceDebugExtension" attribute. We only support generating a single "stratum".
Constructor Summary
SourceDebugExtAttr(ClassType cl)
Add a new InnerClassesAttr to a ClassType.
Method Summary
voidaddStratum(String name)
voidassignConstants(ClassType cl)
intgetLength()
Return the length of the attribute in bytes.
voidprint(ClassTypeWriter dst)
voidwrite(DataOutputStream dstr)
Write out the contents of the Attribute.

Constructor Detail

SourceDebugExtAttr

public SourceDebugExtAttr(ClassType cl)
Add a new InnerClassesAttr to a ClassType.

Method Detail

addStratum

public void addStratum(String name)

assignConstants

public void assignConstants(ClassType cl)

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).

print

public void print(ClassTypeWriter dst)

write

public void write(DataOutputStream dstr)
Write out the contents of the Attribute. Does not write the 6-byte attribute header.