Package org.apache.bcel.classfile
Class ElementValuePair
- java.lang.Object
-
- org.apache.bcel.classfile.ElementValuePair
-
public class ElementValuePair extends java.lang.Object
An annotation's element value pair.- Since:
- 6.0
-
-
Field Summary
Fields Modifier and Type Field Description private ConstantPool
constantPool
private int
elementNameIndex
private ElementValue
elementValue
(package private) static ElementValuePair[]
EMPTY_ARRAY
-
Constructor Summary
Constructors Constructor Description ElementValuePair(int elementNameIndex, ElementValue elementValue, ConstantPool constantPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dump(java.io.DataOutputStream dos)
int
getNameIndex()
java.lang.String
getNameString()
ElementValue
getValue()
java.lang.String
toShortString()
-
-
-
Field Detail
-
EMPTY_ARRAY
static final ElementValuePair[] EMPTY_ARRAY
-
elementValue
private final ElementValue elementValue
-
constantPool
private final ConstantPool constantPool
-
elementNameIndex
private final int elementNameIndex
-
-
Constructor Detail
-
ElementValuePair
public ElementValuePair(int elementNameIndex, ElementValue elementValue, ConstantPool constantPool)
-
-
Method Detail
-
dump
protected void dump(java.io.DataOutputStream dos) throws java.io.IOException
- Throws:
java.io.IOException
-
getNameIndex
public int getNameIndex()
-
getNameString
public java.lang.String getNameString()
-
getValue
public final ElementValue getValue()
-
toShortString
public java.lang.String toShortString()
-
-