All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----harpoon.ClassFile.HField
HField
provides information about a single field of a class
or an interface. The reflected field may be a class (static) field or
an instance field.
HField
against the specified object.
HField
, if
it is a constant field.
HClass
object representing the class or
interface that declares the field represented by this
HField
object.
HField
object.
HField
object, as an integer.
HField
object.
HClass
object that identifies the declared
type for the field represented by this HField
object.
HField
.
HField
represents a constant
field.
HField
is synthetic.
HField
.
public HField()
public HClass getDeclaringClass()
HClass
object representing the class or
interface that declares the field represented by this
HField
object.
public String getName()
HField
object.
public int getModifiers()
HField
object, as an integer. The Modifier
class should be used to decode the modifiers.
public HClass getType()
HClass
object that identifies the declared
type for the field represented by this HField
object.
public String getDescriptor()
HField
object.
public Object getConstant()
HField
, if
it is a constant field.
null
if
!isConstant()
.
public boolean isConstant()
HField
represents a constant
field.
public boolean isSynthetic()
HField
is synthetic.
public boolean isStatic()
public boolean equals(Object object)
HField
against the specified object.
Returns true
if the objects are the same. Two
HFields
are the same if they were declared by the same
class and have the same name and type.
public int hashCode()
HField
. This is
computed as the exclusive-or of the hashcodes for the
underlying field's declaring class and the field name.
public String toString()
HField
. The format
is the access modifiers for the field, if any, followed by the
field type, followed by a space, followed by the fully-qualified
name of the class declaring the field, followed by a period,
followed by the name of the field. For example:
public static final int java.lang.Thread.MIN_PRIORITY
private int java.io.FileDescriptor.fd
The modifiers are placed in canonical order as specified by
"The Java Language Specification." This is
public
, protected
, or private
first, and then other modifiers in the following order:
static
, final
, transient
,
volatile
.
All Packages Class Hierarchy This Package Previous Next Index