org.aspectj.apache.bcel.classfile
Class ConstantValue

java.lang.Object
  extended by org.aspectj.apache.bcel.classfile.Attribute
      extended by org.aspectj.apache.bcel.classfile.ConstantValue
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Node

public final class ConstantValue
extends Attribute

This class is derived from Attribute and represents a constant value, i.e., a default value for initializing a class field. This class is instantiated by the Attribute.readAttribute() method.

See Also:
Attribute, Serialized Form

Field Summary
 
Fields inherited from class org.aspectj.apache.bcel.classfile.Attribute
cpool, length, nameIndex, NoAttributes, tag
 
Constructor Summary
ConstantValue(int name_index, int length, int constantvalue_index, ConstantPool constant_pool)
           
 
Method Summary
 void accept(ClassVisitor v)
           
 void dump(java.io.DataOutputStream file)
           
 int getConstantValueIndex()
           
 java.lang.String toString()
           
 
Methods inherited from class org.aspectj.apache.bcel.classfile.Attribute
getConstantPool, getLength, getName, getNameIndex, getTag, readAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstantValue

public ConstantValue(int name_index,
                     int length,
                     int constantvalue_index,
                     ConstantPool constant_pool)
Method Detail

accept

public void accept(ClassVisitor v)
Specified by:
accept in interface Node
Specified by:
accept in class Attribute

dump

public final void dump(java.io.DataOutputStream file)
                throws java.io.IOException
Overrides:
dump in class Attribute
Throws:
java.io.IOException

getConstantValueIndex

public final int getConstantValueIndex()

toString

public final java.lang.String toString()
Overrides:
toString in class Attribute