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

ConstantString Class Reference

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

Public Methods

 ConstantString (int string_index)
 ConstantString (ConstantString c)
void accept (Visitor v)
final void dump (DataOutputStream file) throws IOException
final int getStringIndex ()
final void setStringIndex (int string_index)
final String toString ()
 ConstantString (int string_index)
 ConstantString (ConstantString c)
void accept (Visitor v)
final void dump (DataOutputStream file) throws IOException
final int getStringIndex ()
final void setStringIndex (int string_index)
final String toString ()

Private Methods

 ConstantString (DataInputStream file) throws IOException
 ConstantString (DataInputStream file) throws IOException

Private Attributes

int string_index

Detailed Description

This class is derived from the abstract Constant class and represents a reference to a String object.

Version:
Id:
ConstantString.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/ConstantString.java.


Constructor & Destructor Documentation

ConstantString::ConstantString int   string_index [inline]
 

Parameters:
string_index   Index of Constant_Utf8 in constant pool

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

ConstantString::ConstantString ConstantString   c [inline]
 

Initialize from another object.

Definition at line 29 of file lib/jpf/de/fub/bytecode/classfile/ConstantString.java.

ConstantString::ConstantString DataInputStream   file [inline, private]
 

Initialize instance from file data.

Parameters:
file   Input stream
Exceptions:
IOException  

Definition at line 38 of file lib/jpf/de/fub/bytecode/classfile/ConstantString.java.

ConstantString::ConstantString int   string_index [inline]
 

Parameters:
string_index   Index of Constant_Utf8 in constant pool

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

ConstantString::ConstantString ConstantString   c [inline]
 

Initialize from another object.

Definition at line 29 of file src/de/fub/bytecode/classfile/ConstantString.java.

ConstantString::ConstantString DataInputStream   file [inline, private]
 

Initialize instance from file data.

Parameters:
file   Input stream
Exceptions:
IOException  

Definition at line 38 of file src/de/fub/bytecode/classfile/ConstantString.java.


Member Function Documentation

void ConstantString::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 49 of file src/de/fub/bytecode/classfile/ConstantString.java.

void ConstantString::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 49 of file lib/jpf/de/fub/bytecode/classfile/ConstantString.java.

final void ConstantString::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 58 of file src/de/fub/bytecode/classfile/ConstantString.java.

final void ConstantString::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 58 of file lib/jpf/de/fub/bytecode/classfile/ConstantString.java.

final int ConstantString::getStringIndex   [inline]
 

Returns:
Index in constant pool of the string (ConstantUtf8).

Definition at line 66 of file src/de/fub/bytecode/classfile/ConstantString.java.

final int ConstantString::getStringIndex   [inline]
 

Returns:
Index in constant pool of the string (ConstantUtf8).

Definition at line 66 of file lib/jpf/de/fub/bytecode/classfile/ConstantString.java.

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

final void ConstantString::setStringIndex int   string_index [inline]
 

Parameters:
string_index.  

Definition at line 70 of file src/de/fub/bytecode/classfile/ConstantString.java.

final void ConstantString::setStringIndex int   string_index [inline]
 

Parameters:
string_index.  

Definition at line 70 of file lib/jpf/de/fub/bytecode/classfile/ConstantString.java.

final String ConstantString::toString   [inline]
 

Returns:
String representation.

Reimplemented from Constant.

Definition at line 76 of file src/de/fub/bytecode/classfile/ConstantString.java.

final String ConstantString::toString   [inline]
 

Returns:
String representation.

Reimplemented from Constant.

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


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