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

ConstantClass Class Reference

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

Public Methods

 ConstantClass (int name_index)
 ConstantClass (ConstantClass c)
void accept (Visitor v)
final void dump (DataOutputStream file) throws IOException
final int getNameIndex ()
final void setNameIndex (int name_index)
final String toString ()
 ConstantClass (int name_index)
 ConstantClass (ConstantClass c)
void accept (Visitor v)
final void dump (DataOutputStream file) throws IOException
final int getNameIndex ()
final void setNameIndex (int name_index)
final String toString ()

Private Methods

 ConstantClass (DataInputStream file) throws IOException
 ConstantClass (DataInputStream file) throws IOException

Private Attributes

int name_index

Detailed Description

This class is derived from the abstract Constant class and represents a reference to a (external) class.

Version:
Id:
ConstantClass.java,v 1.1.1.1 2002/01/24 03:44:00 pserver Exp
Author:
M. Dahm
See also:
Constant

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


Constructor & Destructor Documentation

ConstantClass::ConstantClass int   name_index [inline]
 

Parameters:
name_index   Name index in constant pool

Definition at line 21 of file lib/jpf/de/fub/bytecode/classfile/ConstantClass.java.

ConstantClass::ConstantClass ConstantClass   c [inline]
 

Initialize from another object.

Definition at line 28 of file lib/jpf/de/fub/bytecode/classfile/ConstantClass.java.

ConstantClass::ConstantClass DataInputStream   file [inline, private]
 

Initialize instance from file data.

Parameters:
file   Input stream
Exceptions:
IOException  

Definition at line 37 of file lib/jpf/de/fub/bytecode/classfile/ConstantClass.java.

ConstantClass::ConstantClass int   name_index [inline]
 

Parameters:
name_index   Name index in constant pool

Definition at line 21 of file src/de/fub/bytecode/classfile/ConstantClass.java.

ConstantClass::ConstantClass ConstantClass   c [inline]
 

Initialize from another object.

Definition at line 28 of file src/de/fub/bytecode/classfile/ConstantClass.java.

ConstantClass::ConstantClass DataInputStream   file [inline, private]
 

Initialize instance from file data.

Parameters:
file   Input stream
Exceptions:
IOException  

Definition at line 37 of file src/de/fub/bytecode/classfile/ConstantClass.java.


Member Function Documentation

void ConstantClass::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 Constant.

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

void ConstantClass::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 Constant.

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

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

Dump constant class to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Reimplemented from Constant.

Definition at line 57 of file src/de/fub/bytecode/classfile/ConstantClass.java.

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

Dump constant class to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Reimplemented from Constant.

Definition at line 57 of file lib/jpf/de/fub/bytecode/classfile/ConstantClass.java.

final int ConstantClass::getNameIndex   [inline]
 

Returns:
Name index in constant pool of class name.

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

final int ConstantClass::getNameIndex   [inline]
 

Returns:
Name index in constant pool of class name.

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

Referenced by ConstantClass(), and ConstantPoolGen::ConstantPoolGen().

final void ConstantClass::setNameIndex int   name_index [inline]
 

Parameters:
name_index.  

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

final void ConstantClass::setNameIndex int   name_index [inline]
 

Parameters:
name_index.  

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

final String ConstantClass::toString   [inline]
 

Returns:
String representation.

Reimplemented from Constant.

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

final String ConstantClass::toString   [inline]
 

Returns:
String representation.

Reimplemented from Constant.

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


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