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

ConstantCP Class Reference

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

Public Methods

 ConstantCP (ConstantCP c)
final void dump (DataOutputStream file) throws IOException
final int getClassIndex ()
final int getNameAndTypeIndex ()
final void setClassIndex (int class_index)
final void setNameAndTypeIndex (int name_and_type_index)
final String toString ()
 ConstantCP (ConstantCP c)
final void dump (DataOutputStream file) throws IOException
final int getClassIndex ()
final int getNameAndTypeIndex ()
final void setClassIndex (int class_index)
final void setNameAndTypeIndex (int name_and_type_index)
final String toString ()

Protected Methods

 ConstantCP (byte tag, int class_index, int name_and_type_index)
 ConstantCP (byte tag, int class_index, int name_and_type_index)

Protected Attributes

int class_index
int name_and_type_index

Private Methods

 ConstantCP (byte tag, DataInputStream file) throws IOException
 ConstantCP (byte tag, DataInputStream file) throws IOException

Detailed Description

Abstract super class for Fieldref and Methodref constants.

Version:
Id:
ConstantCP.java,v 1.1.1.1 2002/01/24 03:44:00 pserver Exp
Author:
M. Dahm
See also:
ConstantFieldref , ConstantMethodref , ConstantInterfaceMethodref

Definition at line 14 of file lib/jpf/de/fub/bytecode/classfile/ConstantCP.java.


Constructor & Destructor Documentation

ConstantCP::ConstantCP byte   tag,
int   class_index,
int   name_and_type_index
[inline, protected]
 

Parameters:
class_index   Reference to the class containing the field
name_and_type_index   and the field signature

Definition at line 23 of file lib/jpf/de/fub/bytecode/classfile/ConstantCP.java.

ConstantCP::ConstantCP byte   tag,
DataInputStream   file
[inline, private]
 

Initialize instance from file data.

Parameters:
tag   Constant type tag
file   Input stream
Exceptions:
IOException  

Definition at line 36 of file lib/jpf/de/fub/bytecode/classfile/ConstantCP.java.

ConstantCP::ConstantCP ConstantCP   c [inline]
 

Initialize from another object.

Definition at line 43 of file lib/jpf/de/fub/bytecode/classfile/ConstantCP.java.

ConstantCP::ConstantCP byte   tag,
int   class_index,
int   name_and_type_index
[inline, protected]
 

Parameters:
class_index   Reference to the class containing the field
name_and_type_index   and the field signature

Definition at line 23 of file src/de/fub/bytecode/classfile/ConstantCP.java.

ConstantCP::ConstantCP byte   tag,
DataInputStream   file
[inline, private]
 

Initialize instance from file data.

Parameters:
tag   Constant type tag
file   Input stream
Exceptions:
IOException  

Definition at line 36 of file src/de/fub/bytecode/classfile/ConstantCP.java.

ConstantCP::ConstantCP ConstantCP   c [inline]
 

Initialize from another object.

Definition at line 43 of file src/de/fub/bytecode/classfile/ConstantCP.java.


Member Function Documentation

final void ConstantCP::dump DataOutputStream   file [inline, virtual]
 

Dump constant field reference to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Reimplemented from Constant.

Definition at line 52 of file src/de/fub/bytecode/classfile/ConstantCP.java.

final void ConstantCP::dump DataOutputStream   file [inline, virtual]
 

Dump constant field reference to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Reimplemented from Constant.

Definition at line 52 of file lib/jpf/de/fub/bytecode/classfile/ConstantCP.java.

final int ConstantCP::getClassIndex   [inline]
 

Returns:
Reference (index) to class this field belongs to.

Definition at line 61 of file src/de/fub/bytecode/classfile/ConstantCP.java.

final int ConstantCP::getClassIndex   [inline]
 

Returns:
Reference (index) to class this field belongs to.

Definition at line 61 of file lib/jpf/de/fub/bytecode/classfile/ConstantCP.java.

Referenced by ConstantCP(), ConstantFieldref::ConstantFieldref(), ConstantInterfaceMethodref::ConstantInterfaceMethodref(), ConstantMethodref::ConstantMethodref(), ConstantPoolGen::ConstantPoolGen(), CodeHTML::codeToHTML(), and FieldOrMethod::getClassName().

final int ConstantCP::getNameAndTypeIndex   [inline]
 

Returns:
Reference (index) to signature of the field.

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

final int ConstantCP::getNameAndTypeIndex   [inline]
 

Returns:
Reference (index) to signature of the field.

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

Referenced by ConstantCP(), ConstantFieldref::ConstantFieldref(), ConstantInterfaceMethodref::ConstantInterfaceMethodref(), ConstantMethodref::ConstantMethodref(), ConstantPoolGen::ConstantPoolGen(), CodeHTML::codeToHTML(), FieldOrMethod::getName(), and FieldOrMethod::getSignature().

final void ConstantCP::setClassIndex int   class_index [inline]
 

Parameters:
class_index   points to Constant_class

Definition at line 69 of file src/de/fub/bytecode/classfile/ConstantCP.java.

final void ConstantCP::setClassIndex int   class_index [inline]
 

Parameters:
class_index   points to Constant_class

Definition at line 69 of file lib/jpf/de/fub/bytecode/classfile/ConstantCP.java.

final void ConstantCP::setNameAndTypeIndex int   name_and_type_index [inline]
 

Parameters:
name_and_type_index   points to Constant_NameAndType

Definition at line 75 of file src/de/fub/bytecode/classfile/ConstantCP.java.

final void ConstantCP::setNameAndTypeIndex int   name_and_type_index [inline]
 

Parameters:
name_and_type_index   points to Constant_NameAndType

Definition at line 75 of file lib/jpf/de/fub/bytecode/classfile/ConstantCP.java.

final String ConstantCP::toString   [inline]
 

Returns:
String representation.

Reimplemented from Constant.

Definition at line 81 of file src/de/fub/bytecode/classfile/ConstantCP.java.

final String ConstantCP::toString   [inline]
 

Returns:
String representation.

Reimplemented from Constant.

Definition at line 81 of file lib/jpf/de/fub/bytecode/classfile/ConstantCP.java.


Member Data Documentation

int ConstantCP::class_index [protected]
 

References to the constants containing the class and the field signature

Definition at line 17 of file src/de/fub/bytecode/classfile/ConstantCP.java.

int ConstantCP::name_and_type_index [protected]
 

References to the constants containing the class and the field signature

Definition at line 17 of file src/de/fub/bytecode/classfile/ConstantCP.java.


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