Class InnerClassesWriter
java.lang.Object
com.ibm.wala.shrike.shrikeCT.ClassWriter.Element
com.ibm.wala.shrike.shrikeCT.InnerClassesWriter
This class builds serializable InnerClasses attributes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
copyInto
(byte[] buf, int offset) Copy the bytes into 'buf' at offset 'offset'.int
getSize()
void
setRawTable
(int[] classes) Set the raw values that make up this attribute
-
Constructor Details
-
InnerClassesWriter
Build an empty writer.- Throws:
IllegalArgumentException
- if w is null
-
-
Method Details
-
getSize
public int getSize()- Specified by:
getSize
in classClassWriter.Element
- Returns:
- the number of bytes that will be generated.
-
copyInto
Copy the bytes into 'buf' at offset 'offset'.- Specified by:
copyInto
in classClassWriter.Element
- Returns:
- the number of bytes copies, which must be equal to getSize()
- Throws:
IllegalArgumentException
-
setRawTable
Set the raw values that make up this attribute- Throws:
IllegalArgumentException
- if classes is nullNullPointerException
-