| Access | Constructor and Description |
|---|---|
| pack-priv | FieldImpl(VirtualMachine vm, ReferenceTypeImpl declaringType, long ref, String name, String signature, String genericSignature, int modifiers)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(Field field)
Implements java. Compares this object with the specified object for order. |
| public boolean | equals(Object obj)
Overrides com. Implements com. Compares the specified Object with this field for equality. |
| public Type | |
| public int | hashCode()
Overrides com. Implements com. Returns the hash code value for this Field. |
| public boolean | isEnumConstant()
Implements com. Determine if this is a field that represents an enum constant. |
| public boolean | |
| public boolean | |
| public String | toString()
Overrides java. Implements com. Returns a String describing this mirror |
| public Type | type()
Implements com. Returns the type of this field. |
| public String | Returns: a text representation of the declared type of this field.Implements com. Returns a text representation of the type of this field. |
| FieldImpl | back to summary |
|---|---|
| pack-priv FieldImpl(VirtualMachine vm, ReferenceTypeImpl declaringType, long ref, String name, String signature, String genericSignature, int modifiers) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Field field) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides com. Implements com. Doc from com. Compares the specified Object with this field for equality. | |
| findType | back to summary |
|---|---|
| public Type findType(String signature) throws ClassNotLoadedException Implements com. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides com. Implements com. Doc from com. Returns the hash code value for this Field.
| |
| isEnumConstant | back to summary |
|---|---|
| public boolean isEnumConstant() Implements com. Doc from com. Determine if this is a field that represents an enum constant. | |
| isTransient | back to summary |
|---|---|
| public boolean isTransient() Implements com. Doc from com. Determine if this is a transient field. | |
| isVolatile | back to summary |
|---|---|
| public boolean isVolatile() Implements com. Doc from com. Determine if this is a volatile field. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements com. Doc from com. Returns a String describing this mirror | |
| type | back to summary |
|---|---|
| public Type type() throws ClassNotLoadedException Implements com. Doc from com. Returns the type of this field. Where the type is the type specified in the declaration of this field. For example, if a target class defines: short s; Date d; byte[] ba;And the JDI client defines these Field objects:
Field sField = targetClass.fieldByName("s");
Field dField = targetClass.fieldByName("d");
Field baField = targetClass.fieldByName("ba");
to mirror the corresponding fields, then sField.type()
is a ShortType, dField.type() is the
ReferenceType for java.util.Date and
((ArrayType)(baField.type())).componentType() is a
ByteType.Note if the type of this field is a reference type (class,
interface, or array) and it has not been created or loaded
by the declaring type's class loader - that is,
| |
| typeName | back to summary |
|---|---|
| public String typeName() Implements com. Doc from com. Returns a text representation of the type of this field. Where the type is the type specified in the declaration of this field. This type name is always available even if the type has not yet been created or loaded.
| |