All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.ClassFile.HConstructor

java.lang.Object
   |
   +----harpoon.ClassFile.HMethod
           |
           +----harpoon.ClassFile.HConstructor

public abstract class HConstructor
extends HMethod
A HConstructor provides information about a single constructor for a class.

Version:
$Id: HConstructor.java,v 1.9 1998/11/10 00:44:37 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
HMethod, HMember, HClass

Method Index

 o getName()
Returns the name of this constructor, as a string.
 o hashCode()
Returns a hashcode for this Constructor.
 o toString()
Return a string describing this Constructor.

Methods

 o getName
 public String getName()
Returns the name of this constructor, as a string. This is always the string "<init>".

Overrides:
getName in class HMethod
 o hashCode
 public int hashCode()
Returns a hashcode for this Constructor. The hashcode is computed as the exclusive-or of the hashcodes for the underlying constructor's declaring class and the constructor's descriptor string.

Overrides:
hashCode in class HMethod
 o toString
 public String toString()
Return a string describing this Constructor. The string is formatted as the constructor access modifiers, if any, followed by the fully-qualified name of the declaring class, followed by a parenthesized, comma-separated list of the constructor's formal parameter types. For example:

public java.util.Hashtable(int,float)

The only possible modifiers for constructors are the access modifiers public, protected, or private. Only one of these may appear, or none if the constructor has default (package) access.

Overrides:
toString in class HMethod

All Packages  Class Hierarchy  This Package  Previous  Next  Index