Modifier and Type | Field and Description |
---|---|
private ConstantPool |
constant_pool |
private java.util.List<ElementValuePair> |
element_value_pairs |
private boolean |
isRuntimeVisible |
private int |
type_index |
Constructor and Description |
---|
AnnotationEntry(int type_index,
ConstantPool constant_pool,
boolean isRuntimeVisible) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class.
|
void |
addElementNameValuePair(ElementValuePair elementNameValuePair) |
static AnnotationEntry[] |
createAnnotationEntries(Attribute[] attrs) |
void |
dump(java.io.DataOutputStream dos) |
java.lang.String |
getAnnotationType() |
int |
getAnnotationTypeIndex() |
ConstantPool |
getConstantPool() |
ElementValuePair[] |
getElementValuePairs() |
int |
getNumElementValuePairs() |
int |
getTypeIndex() |
boolean |
isRuntimeVisible() |
static AnnotationEntry |
read(java.io.DataInput input,
ConstantPool constant_pool,
boolean isRuntimeVisible) |
java.lang.String |
toShortString() |
java.lang.String |
toString() |
private final int type_index
private final ConstantPool constant_pool
private final boolean isRuntimeVisible
private java.util.List<ElementValuePair> element_value_pairs
public AnnotationEntry(int type_index, ConstantPool constant_pool, boolean isRuntimeVisible)
public static AnnotationEntry read(java.io.DataInput input, ConstantPool constant_pool, boolean isRuntimeVisible) throws java.io.IOException
java.io.IOException
public int getTypeIndex()
public ConstantPool getConstantPool()
public boolean isRuntimeVisible()
public void accept(Visitor v)
public java.lang.String getAnnotationType()
public int getAnnotationTypeIndex()
public final int getNumElementValuePairs()
public ElementValuePair[] getElementValuePairs()
public void dump(java.io.DataOutputStream dos) throws java.io.IOException
java.io.IOException
public void addElementNameValuePair(ElementValuePair elementNameValuePair)
public java.lang.String toShortString()
public java.lang.String toString()
toString
in class java.lang.Object
public static AnnotationEntry[] createAnnotationEntries(Attribute[] attrs)