edu.mit.ai.psg.jeva
Class InterpretedField

java.lang.Object
  |
  +--edu.mit.ai.psg.jeva.InterpretedMember
        |
        +--edu.mit.ai.psg.jeva.InterpretedField

public class InterpretedField
extends InterpretedMember
implements IField

InterpretedField implements IField methods for fields of interpreted classes.


Constructor Summary
InterpretedField(int modifiers, IClass type, String name, JNSVariableDeclarator declarator)
           
 
Method Summary
 Object get(Object obj)
           
 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)
           
 String toString()
           
 
Methods inherited from class edu.mit.ai.psg.jeva.InterpretedMember
getDeclaringClass, getModifiers, getName, initializeDeclaringClass, isAccessible, modifiersString, setAccessible, shouldNotHappen, shouldNotHappen, shouldNotHappen, typeListString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterpretedField

public InterpretedField(int modifiers,
                        IClass type,
                        String name,
                        JNSVariableDeclarator declarator)
Method Detail

getType

public IClass getType()
Specified by:
getType in interface IField

get

public Object get(Object obj)
           throws IllegalArgumentException,
                  IllegalAccessException
Specified by:
get in interface IField

getBoolean

public boolean getBoolean(Object objectWithField)
                   throws IllegalArgumentException,
                          IllegalAccessException
Specified by:
getBoolean in interface IField

getByte

public byte getByte(Object objectWithField)
             throws IllegalArgumentException,
                    IllegalAccessException
Specified by:
getByte in interface IField

getChar

public char getChar(Object objectWithField)
             throws IllegalArgumentException,
                    IllegalAccessException
Specified by:
getChar in interface IField

getShort

public short getShort(Object objectWithField)
               throws IllegalArgumentException,
                      IllegalAccessException
Specified by:
getShort in interface IField

getInt

public int getInt(Object objectWithField)
           throws IllegalArgumentException,
                  IllegalAccessException
Specified by:
getInt in interface IField

getLong

public long getLong(Object objectWithField)
             throws IllegalArgumentException,
                    IllegalAccessException
Specified by:
getLong in interface IField

getFloat

public float getFloat(Object objectWithField)
               throws IllegalArgumentException,
                      IllegalAccessException
Specified by:
getFloat in interface IField

getDouble

public double getDouble(Object objectWithField)
                 throws IllegalArgumentException,
                        IllegalAccessException
Specified by:
getDouble in interface IField

set

public void set(Object obj,
                Object value)
         throws IllegalArgumentException,
                IllegalAccessException
Specified by:
set in interface IField

setBoolean

public void setBoolean(Object obj,
                       boolean value)
                throws IllegalArgumentException,
                       IllegalAccessException
Specified by:
setBoolean in interface IField

setByte

public void setByte(Object obj,
                    byte value)
             throws IllegalArgumentException,
                    IllegalAccessException
Specified by:
setByte in interface IField

setChar

public void setChar(Object obj,
                    char value)
             throws IllegalArgumentException,
                    IllegalAccessException
Specified by:
setChar in interface IField

setShort

public void setShort(Object obj,
                     short value)
              throws IllegalArgumentException,
                     IllegalAccessException
Specified by:
setShort in interface IField

setInt

public void setInt(Object obj,
                   int value)
            throws IllegalArgumentException,
                   IllegalAccessException
Specified by:
setInt in interface IField

setLong

public void setLong(Object obj,
                    long value)
             throws IllegalArgumentException,
                    IllegalAccessException
Specified by:
setLong in interface IField

setFloat

public void setFloat(Object obj,
                     float value)
              throws IllegalArgumentException,
                     IllegalAccessException
Specified by:
setFloat in interface IField

setDouble

public void setDouble(Object obj,
                      double value)
               throws IllegalArgumentException,
                      IllegalAccessException
Specified by:
setDouble in interface IField

toString

public String toString()
Overrides:
toString in class Object

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-feedback@ai.mit.edu