Top Description Fields Constructors Methods
org.aspectj.apache.bcel.classfile

public final Class ConstantValue

extends Attribute
Class Inheritance
Imports
java.io.DataInputStream, .DataOutputStream, .IOException, org.aspectj.apache.bcel.Constants

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.
Author
M. Dahm
Version
$Id: ConstantValue.java,v 1.6 2009/09/16 00:43:49 aclement Exp $
See Also
Attribute

Field Summary

Modifier and TypeField and Description
private int
Inherited from org.aspectj.apache.bcel.classfile.Attribute:
cpoollengthnameIndexNoAttributestag

Constructor Summary

AccessConstructor and Description
pack-priv
ConstantValue(int name_index, int length, DataInputStream file, ConstantPool constant_pool)

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

Method Summary

Modifier and TypeMethod and Description
public void
public final void
public final int
public final String
toString()

Overrides org.aspectj.apache.bcel.classfile.Attribute.toString.

Returns a string representation of the object.
Inherited from org.aspectj.apache.bcel.classfile.Attribute:
getConstantPoolgetLengthgetNamegetNameIndexgetTagreadAttribute

Field Detail

constantvalue_indexback to summary
private int constantvalue_index

Constructor Detail

ConstantValueback to summary
pack-priv ConstantValue(int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException
ConstantValueback to summary
public ConstantValue(int name_index, int length, int constantvalue_index, ConstantPool constant_pool)

Method Detail

acceptback to summary
public void accept(ClassVisitor v)

Implements abstract org.aspectj.apache.bcel.classfile.Attribute.accept.

Implements org.aspectj.apache.bcel.classfile.Node.accept.

Annotations
@Override
dumpback to summary
public final void dump(DataOutputStream file) throws IOException

Overrides org.aspectj.apache.bcel.classfile.Attribute.dump.

Annotations
@Override
getConstantValueIndexback to summary
public final int getConstantValueIndex()
toStringback to summary
public final String toString()

Overrides org.aspectj.apache.bcel.classfile.Attribute.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override