Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ConstantValue Class Reference

Inheritance diagram for ConstantValue:
[legend]
Collaboration diagram for ConstantValue:
[legend]
List of all members.

Public Methods

 ConstantValue (int name_index, int length, int constantvalue_index, ConstantPool constant_pool)
 ConstantValue (ConstantValue c)
void accept (Visitor v)
Attribute copy (ConstantPool constant_pool)
final void dump (DataOutputStream file) throws IOException
final int getConstantValueIndex ()
final void setConstantValueIndex (int constantvalue_index)
final String toString () throws InternalError
 ConstantValue (int name_index, int length, int constantvalue_index, ConstantPool constant_pool)
 ConstantValue (ConstantValue c)
void accept (Visitor v)
Attribute copy (ConstantPool constant_pool)
final void dump (DataOutputStream file) throws IOException
final int getConstantValueIndex ()
final void setConstantValueIndex (int constantvalue_index)
final String toString () throws InternalError

Private Methods

 ConstantValue (int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException
 ConstantValue (int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException

Static Private Methods

final String convertString (String label)

Private Attributes

int constantvalue_index

Detailed Description

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.1.1.1 2002/01/24 03:44:00 pserver Exp
Author:
M. Dahm
See also:
Attribute

Definition at line 15 of file lib/jpf/de/fub/bytecode/classfile/ConstantValue.java.


Constructor & Destructor Documentation

ConstantValue::ConstantValue int   name_index,
int   length,
int   constantvalue_index,
ConstantPool   constant_pool
[inline]
 

Parameters:
name_index   Name index in constant pool
length   Content length in bytes
constantvalue_index   Index in constant pool
constant_pool   Array of constants

Definition at line 24 of file lib/jpf/de/fub/bytecode/classfile/ConstantValue.java.

ConstantValue::ConstantValue int   name_index,
int   length,
DataInputStream   file,
ConstantPool   constant_pool
[inline, private]
 

Construct object from file stream.

Parameters:
name_index   Name index in constant pool
length   Content length in bytes
file   Input stream
constant_pool   Array of constants
Exceptions:
IOException  

Definition at line 39 of file lib/jpf/de/fub/bytecode/classfile/ConstantValue.java.

ConstantValue::ConstantValue ConstantValue   c [inline]
 

Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy.

Definition at line 48 of file lib/jpf/de/fub/bytecode/classfile/ConstantValue.java.

ConstantValue::ConstantValue int   name_index,
int   length,
int   constantvalue_index,
ConstantPool   constant_pool
[inline]
 

Parameters:
name_index   Name index in constant pool
length   Content length in bytes
constantvalue_index   Index in constant pool
constant_pool   Array of constants

Definition at line 24 of file src/de/fub/bytecode/classfile/ConstantValue.java.

ConstantValue::ConstantValue int   name_index,
int   length,
DataInputStream   file,
ConstantPool   constant_pool
[inline, private]
 

Construct object from file stream.

Parameters:
name_index   Name index in constant pool
length   Content length in bytes
file   Input stream
constant_pool   Array of constants
Exceptions:
IOException  

Definition at line 39 of file src/de/fub/bytecode/classfile/ConstantValue.java.

ConstantValue::ConstantValue ConstantValue   c [inline]
 

Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy.

Definition at line 48 of file src/de/fub/bytecode/classfile/ConstantValue.java.


Member Function Documentation

void ConstantValue::accept Visitor   v [inline, virtual]
 

Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.

Parameters:
v   Visitor object

Reimplemented from Attribute.

Definition at line 59 of file src/de/fub/bytecode/classfile/ConstantValue.java.

void ConstantValue::accept Visitor   v [inline, virtual]
 

Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.

Parameters:
v   Visitor object

Reimplemented from Attribute.

Definition at line 59 of file lib/jpf/de/fub/bytecode/classfile/ConstantValue.java.

final String ConstantValue::convertString String   label [inline, static, private]
 

Escape all occurences of newline chars '
', quotes \", etc.

Definition at line 65 of file src/de/fub/bytecode/classfile/ConstantValue.java.

Attribute ConstantValue::copy ConstantPool   constant_pool [inline, virtual]
 

Returns:
deep copy of this attribute

Reimplemented from Attribute.

Definition at line 91 of file src/de/fub/bytecode/classfile/ConstantValue.java.

Attribute ConstantValue::copy ConstantPool   constant_pool [inline, virtual]
 

Returns:
deep copy of this attribute

Reimplemented from Attribute.

Definition at line 65 of file lib/jpf/de/fub/bytecode/classfile/ConstantValue.java.

final void ConstantValue::dump DataOutputStream   file [inline]
 

Dump constant value attribute to file stream on binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Reimplemented from Attribute.

Definition at line 102 of file src/de/fub/bytecode/classfile/ConstantValue.java.

final void ConstantValue::dump DataOutputStream   file [inline]
 

Dump constant value attribute to file stream on binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Reimplemented from Attribute.

Definition at line 76 of file lib/jpf/de/fub/bytecode/classfile/ConstantValue.java.

final int ConstantValue::getConstantValueIndex   [inline]
 

Returns:
Index in constant pool of constant value.

Definition at line 110 of file src/de/fub/bytecode/classfile/ConstantValue.java.

final int ConstantValue::getConstantValueIndex   [inline]
 

Returns:
Index in constant pool of constant value.

Definition at line 84 of file lib/jpf/de/fub/bytecode/classfile/ConstantValue.java.

Referenced by ConstantValue().

final void ConstantValue::setConstantValueIndex int   constantvalue_index [inline]
 

Parameters:
constantvalue_index.  

Definition at line 114 of file src/de/fub/bytecode/classfile/ConstantValue.java.

final void ConstantValue::setConstantValueIndex int   constantvalue_index [inline]
 

Parameters:
constantvalue_index.  

Definition at line 88 of file lib/jpf/de/fub/bytecode/classfile/ConstantValue.java.

final String ConstantValue::toString   [inline]
 

Returns:
String representation of constant value.

Reimplemented from Attribute.

Definition at line 120 of file src/de/fub/bytecode/classfile/ConstantValue.java.

final String ConstantValue::toString   [inline]
 

Returns:
String representation of constant value.

Reimplemented from Attribute.

Definition at line 94 of file lib/jpf/de/fub/bytecode/classfile/ConstantValue.java.


The documentation for this class was generated from the following files:
Generated at Thu Feb 7 07:07:50 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001