Package com.ibm.wala.shrike.shrikeCT
Class InnerClassesWriter
- java.lang.Object
-
- com.ibm.wala.shrike.shrikeCT.ClassWriter.Element
-
- com.ibm.wala.shrike.shrikeCT.InnerClassesWriter
-
public final class InnerClassesWriter extends ClassWriter.Element
This class builds serializable InnerClasses attributes.
-
-
Constructor Summary
Constructors Constructor Description InnerClassesWriter(ClassWriter w)Build an empty writer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcopyInto(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 Detail
-
InnerClassesWriter
public InnerClassesWriter(ClassWriter w)
Build an empty writer.- Throws:
java.lang.IllegalArgumentException- if w is null
-
-
Method Detail
-
getSize
public int getSize()
- Specified by:
getSizein classClassWriter.Element- Returns:
- the number of bytes that will be generated.
-
copyInto
public int copyInto(byte[] buf, int offset) throws java.lang.IllegalArgumentExceptionCopy 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:
java.lang.IllegalArgumentException
-
setRawTable
public void setRawTable(int[] classes) throws java.lang.NullPointerExceptionSet the raw values that make up this attribute- Throws:
java.lang.IllegalArgumentException- if classes is nulljava.lang.NullPointerException
-
-