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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcopyInto(byte[] buf, int offset) Copy the bytes into 'buf' at offset 'offset'.intgetSize()voidsetRawTable(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:
getSizein classClassWriter.Element- Returns:
- the number of bytes that will be generated.
-
copyInto
Copy the bytes into 'buf' at offset 'offset'.- Specified by:
copyIntoin 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
-