gnu.kawa.reflect
Class ClassMemberLocation
public class ClassMemberLocation
A Location whose value is that of a named field/method of an object.
The object is used as the owning Location's value.
(For now, only fields are supported.)
entered , get , get , getBase , getKeyProperty , getKeySymbol , getValue , isBound , isConstant , make , make , make , print , set , setRestore , setValue , setWithSave , toString , undefine |
ClassMemberLocation
public ClassMemberLocation(Object instance,
Class clas,
String mname)
ClassMemberLocation
public ClassMemberLocation(Object instance,
ClassType type,
String mname)
ClassMemberLocation
public ClassMemberLocation(Object instance,
java.lang.reflect.Field field)
define
public static void define(Object instance,
java.lang.reflect.Field rfield,
String uri,
Language language,
Environment env)
throws IllegalAccessException
defineAll
public static void defineAll(Object instance,
Environment env)
throws IllegalAccessException
Import all the public fields of an object.
get
public Object get(Object defaultValue)
- get in interface Location
getDeclaringClass
public ClassType getDeclaringClass()
getInstance
public final Object getInstance()
getMemberName
public String getMemberName()
getRField
public java.lang.reflect.Field getRField()
set
public void set(Object value)
- set in interface Location
setInstance
public final void setInstance(Object obj)