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

FieldOrMethod Class Reference

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

Public Methods

final void dump (DataOutputStream file) throws IOException
final Attribute[] getAttributes ()
final ConstantPool getConstantPool ()
final String getName ()
final int getNameIndex ()
final String getSignature ()
final int getSignatureIndex ()
final void setAttributes (Attribute[] attributes)
final void setConstantPool (ConstantPool constant_pool)
final void setNameIndex (int name_index)
final void setSignatureIndex (int signature_index)
String getClassName (ConstantPoolGen cpg)
ObjectType getClassType (ConstantPoolGen cpg)
String getName (ConstantPoolGen cpg)
String getSignature (ConstantPoolGen cpg)
final void dump (DataOutputStream file) throws IOException
final Attribute[] getAttributes ()
final ConstantPool getConstantPool ()
final String getName ()
final int getNameIndex ()
final String getSignature ()
final int getSignatureIndex ()
final void setAttributes (Attribute[] attributes)
final void setConstantPool (ConstantPool constant_pool)
final void setNameIndex (int name_index)
final void setSignatureIndex (int signature_index)
String getClassName (ConstantPoolGen cpg)
ObjectType getClassType (ConstantPoolGen cpg)
String getName (ConstantPoolGen cpg)
String getSignature (ConstantPoolGen cpg)

Protected Methods

 FieldOrMethod (int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool)
 FieldOrMethod (FieldOrMethod c)
 FieldOrMethod (DataInputStream file, ConstantPool constant_pool) throws IOException, ClassFormatError
FieldOrMethod copy_ (ConstantPool constant_pool)
 FieldOrMethod (short tag, int index)
 FieldOrMethod (int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool)
 FieldOrMethod (FieldOrMethod c)
 FieldOrMethod (DataInputStream file, ConstantPool constant_pool) throws IOException, ClassFormatError
FieldOrMethod copy_ (ConstantPool constant_pool)
 FieldOrMethod (short tag, int index)

Protected Attributes

int name_index
int signature_index
int attributes_count
Attribute[] attributes
ConstantPool constant_pool
Attribute[] attributes

Private Methods

 FieldOrMethod ()
 FieldOrMethod ()
 FieldOrMethod ()
 FieldOrMethod ()

Detailed Description

Abstract super class for fields and methods.

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

Definition at line 12 of file lib/jpf/de/fub/bytecode/classfile/FieldOrMethod.java.


Constructor & Destructor Documentation

FieldOrMethod::FieldOrMethod int   access_flags,
int   name_index,
int   signature_index,
Attribute   attributes[],
ConstantPool   constant_pool
[inline, protected]
 

Parameters:
access_flags   Access rights of method
name_index   Points to field name in constant pool
signature_index   Points to encoded signature
attributes   Collection of attributes
constant_pool   Array of constants

Definition at line 27 of file lib/jpf/de/fub/bytecode/classfile/FieldOrMethod.java.

FieldOrMethod::FieldOrMethod FieldOrMethod   c [inline, protected]
 

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

Definition at line 41 of file lib/jpf/de/fub/bytecode/classfile/FieldOrMethod.java.

FieldOrMethod::FieldOrMethod DataInputStream   file,
ConstantPool   constant_pool
[inline, protected]
 

Construct object from file stream.

Parameters:
file   Input stream
Exceptions:
IOException  
ClassFormatError  

Definition at line 51 of file lib/jpf/de/fub/bytecode/classfile/FieldOrMethod.java.

FieldOrMethod::FieldOrMethod   [inline, private]
 

Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise.

Definition at line 17 of file lib/jpf/de/fub/bytecode/generic/FieldOrMethod.java.

FieldOrMethod::FieldOrMethod short   tag,
int   index
[inline, protected]
 

Parameters:
index   to constant pool

Definition at line 21 of file lib/jpf/de/fub/bytecode/generic/FieldOrMethod.java.

FieldOrMethod::FieldOrMethod int   access_flags,
int   name_index,
int   signature_index,
Attribute   attributes[],
ConstantPool   constant_pool
[inline, protected]
 

Parameters:
access_flags   Access rights of method
name_index   Points to field name in constant pool
signature_index   Points to encoded signature
attributes   Collection of attributes
constant_pool   Array of constants

Definition at line 27 of file src/de/fub/bytecode/classfile/FieldOrMethod.java.

FieldOrMethod::FieldOrMethod FieldOrMethod   c [inline, protected]
 

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

Definition at line 41 of file src/de/fub/bytecode/classfile/FieldOrMethod.java.

FieldOrMethod::FieldOrMethod DataInputStream   file,
ConstantPool   constant_pool
[inline, protected]
 

Construct object from file stream.

Parameters:
file   Input stream
Exceptions:
IOException  
ClassFormatError  

Definition at line 51 of file src/de/fub/bytecode/classfile/FieldOrMethod.java.

FieldOrMethod::FieldOrMethod   [inline, private]
 

Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise.

Definition at line 17 of file src/de/fub/bytecode/generic/FieldOrMethod.java.

FieldOrMethod::FieldOrMethod short   tag,
int   index
[inline, protected]
 

Parameters:
index   to constant pool

Definition at line 21 of file src/de/fub/bytecode/generic/FieldOrMethod.java.


Member Function Documentation

FieldOrMethod FieldOrMethod::copy_ ConstantPool   constant_pool [inline, protected]
 

Returns:
deep copy of this field

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

FieldOrMethod FieldOrMethod::copy_ ConstantPool   constant_pool [inline, protected]
 

Returns:
deep copy of this field

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

Referenced by Method::copy(), and Field::copy().

final void FieldOrMethod::dump DataOutputStream   out [inline]
 

Dump object to file stream on binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Reimplemented from CPInstruction.

Reimplemented in INVOKEINTERFACE, and INVOKEINTERFACE.

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

final void FieldOrMethod::dump DataOutputStream   out [inline]
 

Dump object to file stream on binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Reimplemented from CPInstruction.

Reimplemented in INVOKEINTERFACE, and INVOKEINTERFACE.

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

Referenced by JavaClass::dump().

final Attribute [] FieldOrMethod::getAttributes   [inline]
 

Returns:
Collection of object attributes.

Definition at line 99 of file src/de/fub/bytecode/classfile/FieldOrMethod.java.

final Attribute [] FieldOrMethod::getAttributes   [inline]
 

Returns:
Collection of object attributes.

Definition at line 99 of file lib/jpf/de/fub/bytecode/classfile/FieldOrMethod.java.

Referenced by FieldGen::FieldGen(), FieldOrMethod(), MethodGen::MethodGen(), and CodeHTML::writeMethod().

String FieldOrMethod::getClassName ConstantPoolGen   cpg [inline]
 

Returns:
name of the referenced class/interface

Definition at line 26 of file src/de/fub/bytecode/generic/FieldOrMethod.java.

String FieldOrMethod::getClassName ConstantPoolGen   cpg [inline]
 

Returns:
name of the referenced class/interface

Definition at line 26 of file lib/jpf/de/fub/bytecode/generic/FieldOrMethod.java.

ObjectType FieldOrMethod::getClassType ConstantPoolGen   cpg [inline]
 

Returns:
type of the referenced class/interface

Definition at line 33 of file src/de/fub/bytecode/generic/FieldOrMethod.java.

ObjectType FieldOrMethod::getClassType ConstantPoolGen   cpg [inline]
 

Returns:
type of the referenced class/interface

Definition at line 33 of file lib/jpf/de/fub/bytecode/generic/FieldOrMethod.java.

final ConstantPool FieldOrMethod::getConstantPool   [inline]
 

Returns:
Constant pool used by this object.

Definition at line 103 of file src/de/fub/bytecode/classfile/FieldOrMethod.java.

final ConstantPool FieldOrMethod::getConstantPool   [inline]
 

Returns:
Constant pool used by this object.

Definition at line 103 of file lib/jpf/de/fub/bytecode/classfile/FieldOrMethod.java.

Referenced by FieldOrMethod(), MethodInfo::loadCode(), and MethodInfo::loadExceptions().

String FieldOrMethod::getName ConstantPoolGen   cpg [inline]
 

Returns:
name of referenced method/field.

Definition at line 38 of file src/de/fub/bytecode/generic/FieldOrMethod.java.

final String FieldOrMethod::getName   [inline]
 

Returns:
Name of object, i.e., method name or field name

Reimplemented in Field, Field, and Method.

Definition at line 107 of file src/de/fub/bytecode/classfile/FieldOrMethod.java.

String FieldOrMethod::getName ConstantPoolGen   cpg [inline]
 

Returns:
name of referenced method/field.

Definition at line 38 of file lib/jpf/de/fub/bytecode/generic/FieldOrMethod.java.

final String FieldOrMethod::getName   [inline]
 

Returns:
Name of object, i.e. method name or field name

Reimplemented in Field, Field, and Method.

Definition at line 107 of file lib/jpf/de/fub/bytecode/classfile/FieldOrMethod.java.

Referenced by FieldInstruction::getFieldName(), and Field::toString().

final int FieldOrMethod::getNameIndex   [inline]
 

Returns:
Index in constant pool of object's name.

Definition at line 116 of file src/de/fub/bytecode/classfile/FieldOrMethod.java.

final int FieldOrMethod::getNameIndex   [inline]
 

Returns:
Index in constant pool of object's name.

Definition at line 116 of file lib/jpf/de/fub/bytecode/classfile/FieldOrMethod.java.

Referenced by FieldOrMethod().

String FieldOrMethod::getSignature ConstantPoolGen   cpg [inline]
 

Returns:
signature of referenced method/field.

Definition at line 46 of file src/de/fub/bytecode/generic/FieldOrMethod.java.

final String FieldOrMethod::getSignature   [inline]
 

Returns:
String representation of object's type signature (java style)

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

String FieldOrMethod::getSignature ConstantPoolGen   cpg [inline]
 

Returns:
signature of referenced method/field.

Definition at line 46 of file lib/jpf/de/fub/bytecode/generic/FieldOrMethod.java.

final String FieldOrMethod::getSignature   [inline]
 

Returns:
String representation of object's type signature (java style)

Definition at line 120 of file lib/jpf/de/fub/bytecode/classfile/FieldOrMethod.java.

Referenced by FieldGen::FieldGen(), FieldInfo::FieldInfo(), MethodGen::MethodGen(), MethodInfo::MethodInfo(), ClassGen::containsMethod(), FieldInstruction::getFieldType(), Field::toString(), and CodeHTML::writeMethod().

final int FieldOrMethod::getSignatureIndex   [inline]
 

Returns:
Index in constant pool of field signature.

Definition at line 129 of file src/de/fub/bytecode/classfile/FieldOrMethod.java.

final int FieldOrMethod::getSignatureIndex   [inline]
 

Returns:
Index in constant pool of field signature.

Definition at line 129 of file lib/jpf/de/fub/bytecode/classfile/FieldOrMethod.java.

Referenced by FieldOrMethod().

final void FieldOrMethod::setAttributes Attribute   attributes[] [inline]
 

Parameters:
attributes   Collection of object attributes.

Definition at line 133 of file src/de/fub/bytecode/classfile/FieldOrMethod.java.

final void FieldOrMethod::setAttributes Attribute   attributes[] [inline]
 

Parameters:
attributes   Collection of object attributes.

Definition at line 133 of file lib/jpf/de/fub/bytecode/classfile/FieldOrMethod.java.

final void FieldOrMethod::setConstantPool ConstantPool   constant_pool [inline]
 

Parameters:
constant_pool   Constant pool to be used for this object.

Definition at line 140 of file src/de/fub/bytecode/classfile/FieldOrMethod.java.

final void FieldOrMethod::setConstantPool ConstantPool   constant_pool [inline]
 

Parameters:
constant_pool   Constant pool to be used for this object.

Definition at line 140 of file lib/jpf/de/fub/bytecode/classfile/FieldOrMethod.java.

final void FieldOrMethod::setNameIndex int   name_index [inline]
 

Parameters:
name_index   Index in constant pool of object's name.

Definition at line 146 of file src/de/fub/bytecode/classfile/FieldOrMethod.java.

final void FieldOrMethod::setNameIndex int   name_index [inline]
 

Parameters:
name_index   Index in constant pool of object's name.

Definition at line 146 of file lib/jpf/de/fub/bytecode/classfile/FieldOrMethod.java.

final void FieldOrMethod::setSignatureIndex int   signature_index [inline]
 

Parameters:
signature_index   Index in constant pool of field signature.

Definition at line 152 of file src/de/fub/bytecode/classfile/FieldOrMethod.java.

final void FieldOrMethod::setSignatureIndex int   signature_index [inline]
 

Parameters:
signature_index   Index in constant pool of field signature.

Definition at line 152 of file lib/jpf/de/fub/bytecode/classfile/FieldOrMethod.java.


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