public final class ExceptionsWriter extends ClassWriter.Element
| Constructor and Description |
|---|
ExceptionsWriter(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 |
setRawTable(int[] exceptions)
Set the list of exceptions that can be thrown.
|
public ExceptionsWriter(ClassWriter w)
java.lang.IllegalArgumentException - if w is nullpublic int getSize()
getSize in class ClassWriter.Elementpublic int copyInto(byte[] buf,
int offset)
throws java.lang.IllegalArgumentException
ClassWriter.ElementcopyInto in class ClassWriter.Elementjava.lang.IllegalArgumentExceptionpublic void setRawTable(int[] exceptions)
exceptions - an array of indices to constant pool Class entriesjava.lang.IllegalArgumentException - if exceptions is null