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

ConstantNameAndType Class Reference

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

Public Methods

 ConstantNameAndType (int name_index, int signature_index)
 ConstantNameAndType (ConstantNameAndType c)
void accept (Visitor v)
final void dump (DataOutputStream file) throws IOException
final int getNameIndex ()
final int getSignatureIndex ()
final void setNameIndex (int name_index)
final void setSignatureIndex (int signature_index)
final String toString ()
 ConstantNameAndType (int name_index, int signature_index)
 ConstantNameAndType (ConstantNameAndType c)
void accept (Visitor v)
final void dump (DataOutputStream file) throws IOException
final int getNameIndex ()
final int getSignatureIndex ()
final void setNameIndex (int name_index)
final void setSignatureIndex (int signature_index)
final String toString ()

Private Methods

 ConstantNameAndType (DataInputStream file) throws IOException
 ConstantNameAndType (DataInputStream file) throws IOException

Private Attributes

int name_index
int signature_index

Detailed Description

This class is derived from the abstract Constant class and represents a reference to the name and signature of a field or method.

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

Definition at line 16 of file lib/jpf/de/fub/bytecode/classfile/ConstantNameAndType.java.


Constructor & Destructor Documentation

ConstantNameAndType::ConstantNameAndType int   name_index,
int   signature_index
[inline]
 

Parameters:
name_index   Name of field/method
signature_index   and its signature

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

ConstantNameAndType::ConstantNameAndType ConstantNameAndType   c [inline]
 

Initialize from another object.

Definition at line 34 of file lib/jpf/de/fub/bytecode/classfile/ConstantNameAndType.java.

ConstantNameAndType::ConstantNameAndType DataInputStream   file [inline, private]
 

Initialize instance from file data.

Parameters:
file   Input stream
Exceptions:
IOException  

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

ConstantNameAndType::ConstantNameAndType int   name_index,
int   signature_index
[inline]
 

Parameters:
name_index   Name of field/method
signature_index   and its signature

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

ConstantNameAndType::ConstantNameAndType ConstantNameAndType   c [inline]
 

Initialize from another object.

Definition at line 34 of file src/de/fub/bytecode/classfile/ConstantNameAndType.java.

ConstantNameAndType::ConstantNameAndType DataInputStream   file [inline, private]
 

Initialize instance from file data.

Parameters:
file   Input stream
Exceptions:
IOException  

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


Member Function Documentation

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

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

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

Dump name and signature index to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Reimplemented from Constant.

Definition at line 63 of file src/de/fub/bytecode/classfile/ConstantNameAndType.java.

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

Dump name and signature index to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Reimplemented from Constant.

Definition at line 63 of file lib/jpf/de/fub/bytecode/classfile/ConstantNameAndType.java.

final int ConstantNameAndType::getNameIndex   [inline]
 

Returns:
Name index in constant pool of field/method name.

Definition at line 72 of file src/de/fub/bytecode/classfile/ConstantNameAndType.java.

final int ConstantNameAndType::getNameIndex   [inline]
 

Returns:
Name index in constant pool of field/method name.

Definition at line 72 of file lib/jpf/de/fub/bytecode/classfile/ConstantNameAndType.java.

Referenced by ConstantNameAndType(), ConstantPoolGen::ConstantPoolGen(), and FieldOrMethod::getName().

final int ConstantNameAndType::getSignatureIndex   [inline]
 

Returns:
Index in constant pool of field/method signature.

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

final int ConstantNameAndType::getSignatureIndex   [inline]
 

Returns:
Index in constant pool of field/method signature.

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

Referenced by ConstantNameAndType(), ConstantPoolGen::ConstantPoolGen(), CodeHTML::codeToHTML(), and FieldOrMethod::getSignature().

final void ConstantNameAndType::setNameIndex int   name_index [inline]
 

Parameters:
name_index.  

Definition at line 80 of file src/de/fub/bytecode/classfile/ConstantNameAndType.java.

final void ConstantNameAndType::setNameIndex int   name_index [inline]
 

Parameters:
name_index.  

Definition at line 80 of file lib/jpf/de/fub/bytecode/classfile/ConstantNameAndType.java.

final void ConstantNameAndType::setSignatureIndex int   signature_index [inline]
 

Parameters:
signature_index.  

Definition at line 86 of file src/de/fub/bytecode/classfile/ConstantNameAndType.java.

final void ConstantNameAndType::setSignatureIndex int   signature_index [inline]
 

Parameters:
signature_index.  

Definition at line 86 of file lib/jpf/de/fub/bytecode/classfile/ConstantNameAndType.java.

final String ConstantNameAndType::toString   [inline]
 

Returns:
String representation

Reimplemented from Constant.

Definition at line 92 of file src/de/fub/bytecode/classfile/ConstantNameAndType.java.

final String ConstantNameAndType::toString   [inline]
 

Returns:
String representation

Reimplemented from Constant.

Definition at line 92 of file lib/jpf/de/fub/bytecode/classfile/ConstantNameAndType.java.


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