All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.ClassFile.Raw.Constant.ConstantNameAndType

java.lang.Object
   |
   +----harpoon.ClassFile.Raw.Constant.Constant
           |
           +----harpoon.ClassFile.Raw.Constant.ConstantNameAndType

public class ConstantNameAndType
extends Constant
The CONSTANT_NameAndType_info structure is used to represent a field or method, without indicating which class or interface type it belongs to.

Version:
$Id: ConstantNameAndType.java,v 1.13 1998/10/11 03:01:15 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
Constant

Variable Index

 o descriptor_index
the value of the descriptor_index must be a valid index into the constant_pool table.
 o name_index
The value of the name_index must be a valid index into the constant_pool table.

Constructor Index

 o ConstantNameAndType(ClassFile, int, int)
Constructor.

Method Index

 o descriptor()
 o descriptor_index()
 o name()
 o name_index()
 o toString()
Create a human-readable representation of this constant.
 o write(ClassDataOutputStream)
Write to a bytecode file.

Variables

 o name_index
 public int name_index
The value of the name_index must be a valid index into the constant_pool table. The constant_pool entry at that index must be a CONSTANT_Utf8_info structure representing a valid Java field name or method name stored as a simple (not fully qualified) name, that is, as a Java identifier.

 o descriptor_index
 public int descriptor_index
the value of the descriptor_index must be a valid index into the constant_pool table. The constant_pool entry at that index must be a CONSTANT_Utf8_info structure representing a valid Java field descriptor or method descriptor.

Constructors

 o ConstantNameAndType
 public ConstantNameAndType(ClassFile parent,
                            int name_index,
                            int descriptor_index)
Constructor.

Methods

 o write
 public void write(ClassDataOutputStream out) throws IOException
Write to a bytecode file.

Overrides:
write in class Constant
 o name_index
 public ConstantUtf8 name_index()
 o descriptor_index
 public ConstantUtf8 descriptor_index()
 o name
 public String name()
 o descriptor
 public String descriptor()
 o toString
 public String toString()
Create a human-readable representation of this constant.

Overrides:
toString in class Constant

All Packages  Class Hierarchy  This Package  Previous  Next  Index