edu.mit.ai.psg.jeva
Interface IField

All Known Implementing Classes:
WrappedField, InterpretedField

public interface IField
extends IMember, IAccessibleObject

IField mirrors java.lang.reflect.Field, enabling Jeva to treat compiled fields and interpreted fields interchangeably.

See Also:
Field

Method Summary
 Object get(Object objectWithField)
           
 boolean getBoolean(Object objectWithField)
           
 byte getByte(Object objectWithField)
           
 char getChar(Object objectWithField)
           
 double getDouble(Object objectWithField)
           
 float getFloat(Object objectWithField)
           
 int getInt(Object objectWithField)
           
 long getLong(Object objectWithField)
           
 short getShort(Object objectWithField)
           
 IClass getType()
           
 void set(Object obj, Object value)
           
 void setBoolean(Object obj, boolean value)
           
 void setByte(Object obj, byte value)
           
 void setChar(Object obj, char value)
           
 void setDouble(Object obj, double value)
           
 void setFloat(Object obj, float value)
           
 void setInt(Object obj, int value)
           
 void setLong(Object obj, long value)
           
 void setShort(Object obj, short value)
           
 
Methods inherited from interface edu.mit.ai.psg.jeva.IMember
getDeclaringClass, getModifiers, getName
 
Methods inherited from interface edu.mit.ai.psg.jeva.IAccessibleObject
isAccessible, setAccessible
 

Method Detail

getType

public IClass getType()

get

public Object get(Object objectWithField)
           throws IllegalArgumentException,
                  IllegalAccessException

getBoolean

public boolean getBoolean(Object objectWithField)
                   throws IllegalArgumentException,
                          IllegalAccessException

getByte

public byte getByte(Object objectWithField)
             throws IllegalArgumentException,
                    IllegalAccessException

getChar

public char getChar(Object objectWithField)
             throws IllegalArgumentException,
                    IllegalAccessException

getShort

public short getShort(Object objectWithField)
               throws IllegalArgumentException,
                      IllegalAccessException

getInt

public int getInt(Object objectWithField)
           throws IllegalArgumentException,
                  IllegalAccessException

getLong

public long getLong(Object objectWithField)
             throws IllegalArgumentException,
                    IllegalAccessException

getFloat

public float getFloat(Object objectWithField)
               throws IllegalArgumentException,
                      IllegalAccessException

getDouble

public double getDouble(Object objectWithField)
                 throws IllegalArgumentException,
                        IllegalAccessException

set

public void set(Object obj,
                Object value)
         throws IllegalArgumentException,
                IllegalAccessException

setBoolean

public void setBoolean(Object obj,
                       boolean value)
                throws IllegalArgumentException,
                       IllegalAccessException

setByte

public void setByte(Object obj,
                    byte value)
             throws IllegalArgumentException,
                    IllegalAccessException

setChar

public void setChar(Object obj,
                    char value)
             throws IllegalArgumentException,
                    IllegalAccessException

setShort

public void setShort(Object obj,
                     short value)
              throws IllegalArgumentException,
                     IllegalAccessException

setInt

public void setInt(Object obj,
                   int value)
            throws IllegalArgumentException,
                   IllegalAccessException

setLong

public void setLong(Object obj,
                    long value)
             throws IllegalArgumentException,
                    IllegalAccessException

setFloat

public void setFloat(Object obj,
                     float value)
              throws IllegalArgumentException,
                     IllegalAccessException

setDouble

public void setDouble(Object obj,
                      double value)
               throws IllegalArgumentException,
                      IllegalAccessException

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-feedback@ai.mit.edu