Class ElementValuePair
java.lang.Object
org.apache.bcel.classfile.ElementValuePair
-
Constructor Summary
ConstructorsConstructorDescriptionElementValuePair(int elementNameIndex, ElementValue elementValue, ConstantPool constantPool) Constructs an ElementValuePair. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddump(DataOutputStream dos) Dumps this element value pair to a DataOutputStream.intGets the name index.Gets the name string.final ElementValuegetValue()Gets the value.Gets a short string representation.
-
Constructor Details
-
ElementValuePair
Constructs an ElementValuePair.- Parameters:
elementNameIndex- the element name index.elementValue- the element value.constantPool- the constant pool.
-
-
Method Details
-
dump
Dumps this element value pair to a DataOutputStream.- Parameters:
dos- the output stream.- Throws:
IOException- if an I/O error occurs.
-
getNameIndex
-
getNameString
-
getValue
-
toShortString
Gets a short string representation.- Returns:
- a short string representation.
-