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- Thrown if an I/O error occurs.
-
getNameIndex
-
getNameString
-
getValue
-
toShortString
Gets a short string representation.- Returns:
- A short string representation.
-