All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class DE.fub.inf.JVM.JavaClass.ConstantMethodref

java.lang.Object
   |
   +----DE.fub.inf.JVM.JavaClass.Constant
           |
           +----DE.fub.inf.JVM.JavaClass.ConstantMethodref

public final class ConstantMethodref
extends Constant
This class is derived from the abstract Constant class and represents a reference to a method of a class.

Version:
970922
Author:
M. Dahm
See Also:
Constant

Constructor Index

 o ConstantMethodref()
Empty constructor, all attributes have to be defined via `setXXX' methods.
 o ConstantMethodref(ConstantMethodref)
Initialize from another object.
 o ConstantMethodref(short, short)

Method Index

 o accept(Visitor)
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class.
 o dump(DataOutputStream)
Dump constant metho reference to file stream in binary format.
 o getClassIndex()
 o getNameAndTypeIndex()
 o setClassIndex(short)
 o setNameAndTypeIndex(short)
 o toString()

Constructors

 o ConstantMethodref
 public ConstantMethodref()
Empty constructor, all attributes have to be defined via `setXXX' methods. Use at your own risk.

 o ConstantMethodref
 public ConstantMethodref(ConstantMethodref c)
Initialize from another object.

 o ConstantMethodref
 public ConstantMethodref(short class_index,
                          short name_and_type_index)
Parameters:
class_index - Reference to the class containing the method
name_and_type_index - and the method signature

Methods

 o accept
 public void accept(Visitor v)
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
Overrides:
accept in class Constant
 o dump
 public final void dump(DataOutputStream file) throws IOException
Dump constant metho reference to file stream in binary format.

Parameters:
file - Output file stream
Overrides:
dump in class Constant
 o getClassIndex
 public final short getClassIndex()
Returns:
Reference (index) to class of the method.
 o getNameAndTypeIndex
 public final short getNameAndTypeIndex()
Returns:
Reference (index) to signature of the method.
 o setClassIndex
 public final void setClassIndex(short class_index)
 o setNameAndTypeIndex
 public final void setNameAndTypeIndex(short name_and_type_index)
 o toString
 public final String toString()
Returns:
String representation.
Overrides:
toString in class Constant

All Packages  Class Hierarchy  This Package  Previous  Next  Index