|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gnu.jel.reflect.LocalField | +--gnu.jel.reflect.Field
Represents a field of already compiled class.
Fields inherited from class gnu.jel.reflect.LocalField |
modifiers |
Fields inherited from interface java.lang.reflect.Member |
DECLARED, PUBLIC |
Constructor Summary | |
Field(java.lang.reflect.Field f)
Constructs a new field object. |
Method Summary | |
java.lang.Object |
eval(java.lang.Object obj,
java.lang.Object[] params)
Evaluates the member. |
java.lang.Class |
getDeclaringClass()
|
Methods inherited from class gnu.jel.reflect.LocalField |
equals, getModifiers, getName, getParameterTypes, getType, getTypeID |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Field(java.lang.reflect.Field f)
f
- is corresponding java.lang.reflect.Field object.Method Detail |
public java.lang.Class getDeclaringClass()
getDeclaringClass
in class LocalField
public java.lang.Object eval(java.lang.Object obj, java.lang.Object[] params) throws java.lang.Exception
Member
Looks up the value of the field or calls the method.
Not all members can be evaluated, for example non static final local fields can not since they exist only in compiler's memory.
eval
in class LocalField
gnu.jel.reflect.Member
obj
- this pointer of corresponding object.params
- array of parameters wrapped in reflection objects.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |