|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JavaField
Represents a field declaration. It is modelled on java.lang.reflect.Field
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
get(JavaObject object)
Get the contents of an Object field |
boolean |
getBoolean(JavaObject object)
Get the contents of a boolean field |
byte |
getByte(JavaObject object)
Get the contents of a byte field |
char |
getChar(JavaObject object)
Get the contents of a char field |
double |
getDouble(JavaObject object)
Get the contents of a double field |
float |
getFloat(JavaObject object)
Get the contents of a float field |
int |
getInt(JavaObject object)
Get the contents of an int field |
long |
getLong(JavaObject object)
Get the contents of a long field |
short |
getShort(JavaObject object)
Get the contents of a short field |
java.lang.String |
getString(JavaObject object)
Get the contents of a string field |
int |
hashCode()
|
| Methods inherited from interface com.ibm.dtfj.java.JavaMember |
|---|
getDeclaringClass, getModifiers, getName, getSignature |
| Method Detail |
|---|
java.lang.Object get(JavaObject object)
throws CorruptDataException,
MemoryAccessException
object - to fetch the field from. Ignored for static
fields.
This field must be declared in the object's class or in a superclass
CorruptDataException
MemoryAccessException
java.lang.NullPointerException - if the field is an instance field, and object is null
java.lang.IllegalArgumentException - if the specified object is not appropriate for
this fieldJavaObject,
Byte,
Double,
Float,
Integer,
Long,
Short,
Character,
Boolean
boolean getBoolean(JavaObject object)
throws CorruptDataException,
MemoryAccessException
object - to fetch the field from. Ignored for static fields.
CorruptDataException
MemoryAccessException
java.lang.NullPointerException - if the field is an instance field, and object is null
java.lang.IllegalArgumentException - if the specified object is not appropriate for
this field, or if the type of the field cannot be converted to boolean
byte getByte(JavaObject object)
throws CorruptDataException,
MemoryAccessException
object - to fetch the field from. Ignored for static fields.
CorruptDataException
MemoryAccessException
java.lang.NullPointerException - if the field is an instance field, and object is null
java.lang.IllegalArgumentException - if the specified object is not appropriate for
this field, or if the type of the field cannot be converted to byte
char getChar(JavaObject object)
throws CorruptDataException,
MemoryAccessException
object - to fetch the field from. Ignored for static fields.
CorruptDataException
MemoryAccessException
java.lang.NullPointerException - if the field is an instance field, and object is null
java.lang.IllegalArgumentException - if the specified object is not appropriate for
this field, or if the type of the field cannot be converted to char
double getDouble(JavaObject object)
throws CorruptDataException,
MemoryAccessException
object - to fetch the field from. Ignored for static fields.
CorruptDataException
MemoryAccessException
java.lang.NullPointerException - if the field is an instance field, and object is null
java.lang.IllegalArgumentException - if the specified object is not appropriate for
this field, or if the type of the field cannot be converted to double
float getFloat(JavaObject object)
throws CorruptDataException,
MemoryAccessException
object - to fetch the field from. Ignored for static fields.
CorruptDataException
MemoryAccessException
java.lang.NullPointerException - if the field is an instance field, and object is null
java.lang.IllegalArgumentException - if the specified object is not appropriate for
this field, or if the type of the field cannot be converted to float
int getInt(JavaObject object)
throws CorruptDataException,
MemoryAccessException
object - to fetch the field from. Ignored for static fields.
CorruptDataException
MemoryAccessException
java.lang.NullPointerException - if the field is an instance field, and object is null
java.lang.IllegalArgumentException - if the specified object is not appropriate for
this field, or if the type of the field cannot be converted to int
long getLong(JavaObject object)
throws CorruptDataException,
MemoryAccessException
object - to fetch the field from. Ignored for static fields.
CorruptDataException
MemoryAccessException
java.lang.NullPointerException - if the field is an instance field, and object is null
java.lang.IllegalArgumentException - if the specified object is not appropriate for
this field, or if the type of the field cannot be converted to long
short getShort(JavaObject object)
throws CorruptDataException,
MemoryAccessException
object - to fetch the field from. Ignored for static fields.
CorruptDataException
MemoryAccessException
java.lang.NullPointerException - if the field is an instance field, and object is null
java.lang.IllegalArgumentException - if the specified object is not appropriate for
this field, or if the type of the field cannot be converted to short
java.lang.String getString(JavaObject object)
throws CorruptDataException,
MemoryAccessException
object - to fetch the field from. Ignored for static fields.
CorruptDataException
MemoryAccessException
java.lang.IllegalArgumentException - if the specified field is not a String
java.lang.NullPointerException - if the field is an instance field, and object is nullboolean equals(java.lang.Object obj)
equals in interface JavaMemberequals in class java.lang.Objectobj -
int hashCode()
hashCode in interface JavaMemberhashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||