openjava.mop
Class OJFieldSourceCode
java.lang.Object
|
+--openjava.mop.OJFieldImp
|
+--openjava.mop.OJFieldSourceCode
- class OJFieldSourceCode
- extends OJFieldImp
idCounter
private static int idCounter
id
private int id
declarer
private OJClass declarer
definition
private FieldDeclaration definition
env
private Environment env
OJFieldSourceCode
OJFieldSourceCode(Environment env,
OJClass declarer,
FieldDeclaration ptree)
toString
public String toString()
- Specified by:
toString
in class OJFieldImp
getDeclaringClass
OJClass getDeclaringClass()
- Specified by:
getDeclaringClass
in class OJFieldImp
getName
String getName()
- Specified by:
getName
in class OJFieldImp
getIdentifiableName
String getIdentifiableName()
- Specified by:
getIdentifiableName
in class OJFieldImp
getModifiers
OJModifier getModifiers()
- Specified by:
getModifiers
in class OJFieldImp
getType
OJClass getType()
- Specified by:
getType
in class OJFieldImp
get
Object get(Object obj)
throws IllegalArgumentException,
IllegalAccessException
- Obtains the field value specified by this field object on
the given object.
- Specified by:
get
in class OJFieldImp
- Throws:
IllegalArgumentException
- if this field is not
compiled yet.
IllegalAccessException
getBoolean
boolean getBoolean(Object obj)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getBoolean
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
getByte
byte getByte(Object obj)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getByte
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
getChar
char getChar(Object obj)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getChar
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
getShort
short getShort(Object obj)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getShort
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
getInt
int getInt(Object obj)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getInt
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
getLong
long getLong(Object obj)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getLong
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
getFloat
float getFloat(Object obj)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getFloat
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
getDouble
double getDouble(Object obj)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
getDouble
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
set
void set(Object obj,
Object value)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
set
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
setBoolean
void setBoolean(Object obj,
boolean z)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setBoolean
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
setByte
void setByte(Object obj,
byte b)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setByte
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
setChar
void setChar(Object obj,
char c)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setChar
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
setShort
void setShort(Object obj,
short s)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setShort
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
setInt
void setInt(Object obj,
int i)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setInt
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
setLong
void setLong(Object obj,
long l)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setLong
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
setFloat
void setFloat(Object obj,
float f)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setFloat
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
setDouble
void setDouble(Object obj,
double d)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
setDouble
in class OJFieldImp
IllegalArgumentException
IllegalAccessException
isExecutable
boolean isExecutable()
- Specified by:
isExecutable
in class OJFieldImp
isAlterable
boolean isAlterable()
- Specified by:
isAlterable
in class OJFieldImp
getByteCode
final Field getByteCode()
throws CannotExecuteException
- Specified by:
getByteCode
in class OJFieldImp
CannotExecuteException
getSourceCode
final FieldDeclaration getSourceCode()
throws CannotAlterException
- Specified by:
getSourceCode
in class OJFieldImp
CannotAlterException
getEnvironment
Environment getEnvironment()
setSourceCode
final void setSourceCode(FieldDeclaration definition)
setDeclaringClass
void setDeclaringClass(OJClass parent)
throws CannotAlterException
- Specified by:
setDeclaringClass
in class OJFieldImp
CannotAlterException
setName
final void setName(String name)
throws CannotAlterException
- Specified by:
setName
in class OJFieldImp
CannotAlterException
setModifiers
final void setModifiers(int mods)
throws CannotAlterException
- Specified by:
setModifiers
in class OJFieldImp
CannotAlterException
setType
final void setType(OJClass type)
throws CannotAlterException
- Specified by:
setType
in class OJFieldImp
CannotAlterException