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.
- Author:
- CarlManning, caroma@ai.mit.edu
Copyright (c) 1997, 1998, 1999 Massachusetts Institute of Technology
InterpretedField
public InterpretedField(int modifiers,
IClass type,
String name,
JNSVariableDeclarator declarator)
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