public abstract class FieldAccess
extends Object
-
Constructor Summary
Constructors
-
Method Summary
abstract boolean
abstract byte
abstract char
abstract double
int
abstract float
int
int
abstract int
abstract long
abstract short
abstract void
void
abstract void
abstract void
abstract void
abstract void
void
abstract void
abstract void
abstract void
abstract void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FieldAccess
public FieldAccess()
-
Method Details
-
getIndex
public int getIndex(String fieldName)
-
getIndex
public int getIndex(Field field)
-
-
-
getFieldNames
public String[] getFieldNames()
-
getFieldTypes
public Class[] getFieldTypes()
-
getFieldCount
public int getFieldCount()
-
getFields
public Field[] getFields()
-
setFields
public void setFields(Field[] fields)
-
set
public abstract void set(Object instance,
int fieldIndex,
Object value)
-
setBoolean
public abstract void setBoolean(Object instance,
int fieldIndex,
boolean value)
-
setByte
public abstract void setByte(Object instance,
int fieldIndex,
byte value)
-
setShort
public abstract void setShort(Object instance,
int fieldIndex,
short value)
-
setInt
public abstract void setInt(Object instance,
int fieldIndex,
int value)
-
setLong
public abstract void setLong(Object instance,
int fieldIndex,
long value)
-
setDouble
public abstract void setDouble(Object instance,
int fieldIndex,
double value)
-
setFloat
public abstract void setFloat(Object instance,
int fieldIndex,
float value)
-
setChar
public abstract void setChar(Object instance,
int fieldIndex,
char value)
-
-
getString
public abstract String getString(Object instance,
int fieldIndex)
-
getChar
public abstract char getChar(Object instance,
int fieldIndex)
-
getBoolean
public abstract boolean getBoolean(Object instance,
int fieldIndex)
-
getByte
public abstract byte getByte(Object instance,
int fieldIndex)
-
getShort
public abstract short getShort(Object instance,
int fieldIndex)
-
getInt
public abstract int getInt(Object instance,
int fieldIndex)
-
getLong
public abstract long getLong(Object instance,
int fieldIndex)
-
getDouble
public abstract double getDouble(Object instance,
int fieldIndex)
-
getFloat
public abstract float getFloat(Object instance,
int fieldIndex)
-
get
- Parameters:
type
- Must not be the Object class, an interface, a primitive type, or void.