All Packages Class Hierarchy This Package Previous Next Index
Interface harpoon.ClassFile.HMember
- public interface HMember
HMember
is an interface that reflects identifying information
about a single member (a field or a method) or a constructor.
- Version:
- $Id: HMember.java,v 1.5 1998/10/11 03:01:01 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
- See Also:
- HClass, HField, HMethod, HConstructor
-
getDeclaringClass()
-
Returns the
HClass
object representing the class or
interface that declares the member or constructor represented by this
HMember
.
-
getModifiers()
- Returns the Java language modifiers for the member of constructor
represented by this
HMember
, as an integer.
-
getName()
- Returns the simple name of the underlying member or constructor
represented by this
HMember
.
-
isSynthetic()
- Indicates whether this field or method is 'real' or if it has
been synthesized by the compiler in order to implement scoping
of inner classes.
getDeclaringClass
public abstract HClass getDeclaringClass()
- Returns the
HClass
object representing the class or
interface that declares the member or constructor represented by this
HMember
.
getName
public abstract String getName()
- Returns the simple name of the underlying member or constructor
represented by this
HMember
.
getModifiers
public abstract int getModifiers()
- Returns the Java language modifiers for the member of constructor
represented by this
HMember
, as an integer. The
Modifier
class should be used to decode the
modifiers in the integer.
- See Also:
- Modifier
isSynthetic
public abstract boolean isSynthetic()
- Indicates whether this field or method is 'real' or if it has
been synthesized by the compiler in order to implement scoping
of inner classes.
All Packages Class Hierarchy This Package Previous Next Index