All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.ClassFile.Raw.Constant.ConstantClass

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

public class ConstantClass
extends Constant
The CONSTANT_Class_info structure is used to represent a class or an interface.

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

Variable Index

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

Constructor Index

 o ConstantClass(ClassFile, int)
Constructor.

Method 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 item must be a valid index into the constant_pool table of parent. The constant_pool entry at that index must be a CONSTANT_Utf8_info structure representing a valid fully qualified Java class name that has been converted to the class file's internal form.

Constructors

 o ConstantClass
 public ConstantClass(ClassFile parent,
                      int name_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 name
 public String name()
 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