All Packages Class Hierarchy This Package Previous Next Index
Class DE.fub.inf.JVM.JavaClass.ConstantInterfaceMethodref
java.lang.Object
|
+----DE.fub.inf.JVM.JavaClass.Constant
|
+----DE.fub.inf.JVM.JavaClass.ConstantInterfaceMethodref
- public final class ConstantInterfaceMethodref
- extends Constant
This class is derived from the abstract
Constant class
and represents a reference to an interface method.
- Version:
- 970922
- Author:
- M. Dahm
- See Also:
- Constant
-
ConstantInterfaceMethodref()
- Empty constructor, all attributes have to be defined via `setXXX'
methods.
-
ConstantInterfaceMethodref(ConstantInterfaceMethodref)
- Initialize from another object.
-
ConstantInterfaceMethodref(short, short)
-
-
accept(Visitor)
- Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
-
dump(DataOutputStream)
- Dump constant interface method reference to file stream in binary format.
-
getClassIndex()
-
-
getNameAndTypeIndex()
-
-
setClassIndex(short)
-
-
setNameAndTypeIndex(short)
-
-
toString()
-
ConstantInterfaceMethodref
public ConstantInterfaceMethodref()
- Empty constructor, all attributes have to be defined via `setXXX'
methods. Use at your own risk.
ConstantInterfaceMethodref
public ConstantInterfaceMethodref(ConstantInterfaceMethodref c)
- Initialize from another object.
ConstantInterfaceMethodref
public ConstantInterfaceMethodref(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
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
dump
public final void dump(DataOutputStream file) throws IOException
- Dump constant interface method reference to file stream in binary format.
- Parameters:
- file - Output file stream
- Overrides:
- dump in class Constant
getClassIndex
public final short getClassIndex()
- Returns:
- Reference (index) to class of the method.
getNameAndTypeIndex
public final short getNameAndTypeIndex()
- Returns:
- Reference (index) to signature of the method.
setClassIndex
public final void setClassIndex(short class_index)
setNameAndTypeIndex
public final void setNameAndTypeIndex(short name_and_type_index)
toString
public final String toString()
- Returns:
- String representation.
- Overrides:
- toString in class Constant
All Packages Class Hierarchy This Package Previous Next Index