public final class SourceFileWriter extends ClassWriter.Element
After constructing a SourceFileWriter, you must call setSourceFileCPIndex.
| 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)
java.lang.IllegalArgumentException - if w is nullpublic int getSize()
throws java.lang.IllegalArgumentException
getSize in class ClassWriter.Elementjava.lang.IllegalArgumentExceptionpublic int copyInto(byte[] buf,
int offset)
throws java.lang.IllegalArgumentException
ClassWriter.ElementcopyInto in class ClassWriter.Elementjava.lang.IllegalArgumentExceptionpublic void setSourceFileCPIndex(int index)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException