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.ElementIllegalArgumentExceptionpublic int copyInto(byte[] buf,
int offset)
throws IllegalArgumentException
ClassWriter.ElementcopyInto in class ClassWriter.ElementIllegalArgumentExceptionpublic void setSourceFileCPIndex(int index)
throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2019. All rights reserved.