openjava.mop
Class OJFieldSourceCode

java.lang.Object
  |
  +--openjava.mop.OJFieldImp
        |
        +--openjava.mop.OJFieldSourceCode

class OJFieldSourceCode
extends OJFieldImp


Field Summary
private  OJClass declarer
           
private  FieldDeclaration definition
           
private  Environment env
           
private  int id
           
private static int idCounter
           
 
Constructor Summary
(package private) OJFieldSourceCode(Environment env, OJClass declarer, FieldDeclaration ptree)
           
 
Method Summary
(package private)  Object get(Object obj)
          Obtains the field value specified by this field object on the given object.
(package private)  boolean getBoolean(Object obj)
           
(package private)  byte getByte(Object obj)
           
(package private)  Field getByteCode()
           
(package private)  char getChar(Object obj)
           
(package private)  OJClass getDeclaringClass()
           
(package private)  double getDouble(Object obj)
           
(package private)  Environment getEnvironment()
           
(package private)  float getFloat(Object obj)
           
(package private)  String getIdentifiableName()
           
(package private)  int getInt(Object obj)
           
(package private)  long getLong(Object obj)
           
(package private)  OJModifier getModifiers()
           
(package private)  String getName()
           
(package private)  short getShort(Object obj)
           
(package private)  FieldDeclaration getSourceCode()
           
(package private)  OJClass getType()
           
(package private)  boolean isAlterable()
           
(package private)  boolean isExecutable()
           
(package private)  void set(Object obj, Object value)
           
(package private)  void setBoolean(Object obj, boolean z)
           
(package private)  void setByte(Object obj, byte b)
           
(package private)  void setChar(Object obj, char c)
           
(package private)  void setDeclaringClass(OJClass parent)
           
(package private)  void setDouble(Object obj, double d)
           
(package private)  void setFloat(Object obj, float f)
           
(package private)  void setInt(Object obj, int i)
           
(package private)  void setLong(Object obj, long l)
           
(package private)  void setModifiers(int mods)
           
(package private)  void setName(String name)
           
(package private)  void setShort(Object obj, short s)
           
(package private)  void setSourceCode(FieldDeclaration definition)
           
(package private)  void setType(OJClass type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

idCounter

private static int idCounter

id

private int id

declarer

private OJClass declarer

definition

private FieldDeclaration definition

env

private Environment env
Constructor Detail

OJFieldSourceCode

OJFieldSourceCode(Environment env,
                  OJClass declarer,
                  FieldDeclaration ptree)
Method Detail

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

SourceForge.net_Logo