< prev index next >

src/java.xml/share/classes/com/sun/org/apache/bcel/internal/classfile/ConstantValue.java

Print this page

        

*** 30,40 **** /** * This class is derived from <em>Attribute</em> and represents a constant * value, i.e., a default value for initializing a class field. * This class is instantiated by the <em>Attribute.readAttribute()</em> method. * - * @version $Id$ * @see Attribute */ public final class ConstantValue extends Attribute { private int constantvalue_index; --- 30,39 ----
*** 94,130 **** * * @param file Output file stream * @throws IOException */ @Override ! public final void dump( final DataOutputStream file ) throws IOException { super.dump(file); file.writeShort(constantvalue_index); } /** * @return Index in constant pool of constant value. */ ! public final int getConstantValueIndex() { return constantvalue_index; } /** * @param constantvalue_index the index info the constant pool of this constant value */ ! public final void setConstantValueIndex( final int constantvalue_index ) { this.constantvalue_index = constantvalue_index; } /** * @return String representation of constant value. */ @Override ! public final String toString() { Constant c = super.getConstantPool().getConstant(constantvalue_index); String buf; int i; // Print constant to string depending on its type switch (c.getTag()) { --- 93,129 ---- * * @param file Output file stream * @throws IOException */ @Override ! public void dump( final DataOutputStream file ) throws IOException { super.dump(file); file.writeShort(constantvalue_index); } /** * @return Index in constant pool of constant value. */ ! public int getConstantValueIndex() { return constantvalue_index; } /** * @param constantvalue_index the index info the constant pool of this constant value */ ! public void setConstantValueIndex( final int constantvalue_index ) { this.constantvalue_index = constantvalue_index; } /** * @return String representation of constant value. */ @Override ! public String toString() { Constant c = super.getConstantPool().getConstant(constantvalue_index); String buf; int i; // Print constant to string depending on its type switch (c.getTag()) {
< prev index next >