harpoon.ClassFile
Interface HInitializer

All Superinterfaces:
Comparable<HMember>, HMember, HMethod

public interface HInitializer
extends HMethod

An HInitializer provides information about a class initializer method.

Version:
$Id: HInitializer.java,v 1.3 2002/04/10 03:04:15 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
HMethod, HConstructor

Nested Class Summary
 
Nested classes/interfaces inherited from interface harpoon.ClassFile.HMember
HMember.MemberComparator
 
Field Summary
static ArrayFactory<HInitializer> arrayFactory
          Array factory: returns new HInitializer[].
 
Fields inherited from interface harpoon.ClassFile.HMember
memberComparator
 
Method Summary
 String getName()
          Returns the name of this class initializer, as a string.
 int hashCode()
          Returns a hashcode for this class initializer.
 boolean isInterfaceMethod()
          Determines whether this HInitializer is an interface method.
 
Methods inherited from interface harpoon.ClassFile.HMethod
equals, getDeclaringClass, getDescriptor, getExceptionTypes, getGenericParameterTypes, getGenericReturnType, getModifiers, getMutator, getParameterNames, getParameterTypes, getReturnType, getTypeParameters, isStatic, isSynthetic, toString
 
Methods inherited from interface harpoon.ClassFile.HMember
compareTo
 

Field Detail

arrayFactory

static final ArrayFactory<HInitializer> arrayFactory
Array factory: returns new HInitializer[].

Method Detail

getName

String getName()
Returns the name of this class initializer, as a string. This is always the string "<clinit>".

Specified by:
getName in interface HMember
Specified by:
getName in interface HMethod

isInterfaceMethod

boolean isInterfaceMethod()
Determines whether this HInitializer is an interface method.

Specified by:
isInterfaceMethod in interface HMethod
Returns:
false for all class initializers (even class initializers belonging to interface classes)

hashCode

int hashCode()
Returns a hashcode for this class initializer. This hashcode is computed as the exclusive-or of the hashcodes of the initializer's declaring class and the string "<clinit>".

Specified by:
hashCode in interface HMember
Overrides:
hashCode in class Object