org.aspectj.apache.bcel.classfile
Class ConstantValue
java.lang.Object
org.aspectj.apache.bcel.classfile.Attribute
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.
- Version:
- $Id: ConstantValue.java,v 1.6 2009/09/16 00:43:49 aclement Exp $
- Author:
- M. Dahm
- See Also:
Attribute
,
Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConstantValue
public ConstantValue(int name_index,
int length,
int constantvalue_index,
ConstantPool constant_pool)
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