public final class SourceFileWriter extends ClassWriter.Element
Constructor and Description |
---|
SourceFileWriter(ClassWriter w)
Build an empty writer.
|
Modifier and Type | Method and Description |
---|---|
int |
copyInto(byte[] buf,
int offset)
Copy the bytes into 'buf' at offset 'offset'.
|
int |
getSize() |
void |
setSourceFileCPIndex(int index)
Set the index of the constant pool item holding the source file name.
|
public SourceFileWriter(ClassWriter w)
IllegalArgumentException
- if w is nullpublic int getSize() throws IllegalArgumentException
getSize
in class ClassWriter.Element
IllegalArgumentException
public int copyInto(byte[] buf, int offset) throws IllegalArgumentException
ClassWriter.Element
copyInto
in class ClassWriter.Element
IllegalArgumentException
public void setSourceFileCPIndex(int index) throws IllegalArgumentException
IllegalArgumentException