class CLElementValue extends Object
| Modifier and Type | Field and Description |
|---|---|
CLAnnotation |
annotationValue
element_value.annotation_value item.
|
int |
classInfoIndex
element_value.class_info_index item.
|
int |
constNameIndex
element_value.enum_const_value.const_name_index item.
|
int |
constValueIndex
element_value.const_value_index item.
|
int |
numValues
element_value.array_value.numValues item.
|
short |
tag
element_value.tag item.
|
int |
typeNameIndex
element_value.enum_const_value.type_name_index item.
|
ArrayList<CLElementValue> |
values
element_value.array_value.values item.
|
| Constructor and Description |
|---|
CLElementValue(CLAnnotation annotationValue)
Construct a CLElementValue object.
|
CLElementValue(int classInfoIndex)
Construct a CLElementValue object.
|
CLElementValue(int numValues,
ArrayList<CLElementValue> values)
Construct a CLElementValue object.
|
CLElementValue(int typeNameIndex,
int constNameIndex)
Construct a CLElementValue object.
|
CLElementValue(short tag,
int constValueIndex)
Construct a CLElementValue 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 short tag
public int constValueIndex
public int typeNameIndex
public int constNameIndex
public int classInfoIndex
public CLAnnotation annotationValue
public int numValues
public ArrayList<CLElementValue> values
public CLElementValue(short tag,
int constValueIndex)
tag - element_value.tag item.constValueIndex - element_value.const_value_index item.public CLElementValue(int typeNameIndex,
int constNameIndex)
typeNameIndex - element_value.type_name_index item.constNameIndex - element_value.const_name_index item.public CLElementValue(int classInfoIndex)
classInfoIndex - element_value.class_info_index item.public CLElementValue(CLAnnotation annotationValue)
annotationValue - element_value.annotation_value item.public CLElementValue(int numValues,
ArrayList<CLElementValue> values)
numValues - element_value.num_values.values - element_value.values.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.