class CLAnnotation extends Object
Modifier and Type | Field and Description |
---|---|
ArrayList<CLElementValuePair> |
elementValuePairs
annotation.element_value_pairs item.
|
int |
numElementValuePairs
annotation.num_element_value_pairs item.
|
int |
typeIndex
annotation.type_index item.
|
Constructor and Description |
---|
CLAnnotation(int typeIndex,
int numElementValuePairs,
ArrayList<CLElementValuePair> elementValuePairs)
Construct a CLAnnotation object.
|
Modifier and Type | Method and Description |
---|---|
void |
write(CLOutputStream out)
Write the contents of this object to the specified output stream.
|
void |
writeToStdOut(PrettyPrinter p)
Write the content of this object to STDOUT in a format similar to that of
javap.
|
public int typeIndex
public int numElementValuePairs
public ArrayList<CLElementValuePair> elementValuePairs
public CLAnnotation(int typeIndex, int numElementValuePairs, ArrayList<CLElementValuePair> elementValuePairs)
typeIndex
- annotation.type_index item.numElementValuePairs
- annotation.num_element_value_pairs item.elementValuePairs
- annotation.element_value_pairs item.public void write(CLOutputStream out) throws IOException
out
- output stream.IOException
- if an error occurs while writing.public void writeToStdOut(PrettyPrinter p)
p
- for pretty printing with indentation.