public abstract class ClassMemberLocation<T> extends Location<T>
Constructor and Description |
---|
ClassMemberLocation(java.lang.Object instance,
java.lang.Class clas,
java.lang.String mname) |
ClassMemberLocation(java.lang.Object instance,
ClassType type,
java.lang.String mname) |
ClassMemberLocation(java.lang.Object instance,
java.lang.reflect.Field field) |
ClassMemberLocation(java.lang.Object instance,
java.lang.String cname,
java.lang.String mname) |
Modifier and Type | Method and Description |
---|---|
static void |
define(java.lang.Object instance,
java.lang.reflect.Field rfield,
java.lang.String uri,
Language language,
Environment env) |
static void |
defineAll(java.lang.Object instance,
Language language,
Environment env)
Import all the public fields of an object.
|
T |
get(T defaultValue) |
ClassType |
getDeclaringClass() |
java.lang.String |
getDeclaringClassname() |
java.lang.Object |
getInstance() |
java.lang.String |
getMemberName() |
java.lang.Class |
getRClass()
Return the
Class this member is in. |
java.lang.reflect.Field |
getRField() |
boolean |
isBound() |
boolean |
isConstant() |
void |
set(T value) |
void |
setInstance(java.lang.Object obj) |
define, entered, get, getBase, getKeyProperty, getKeySymbol, getValue, make, make, make, print, setRestore, setValue, setWithSave, toString, undefine
public ClassMemberLocation(java.lang.Object instance, java.lang.String cname, java.lang.String mname)
public ClassMemberLocation(java.lang.Object instance, ClassType type, java.lang.String mname)
public ClassMemberLocation(java.lang.Object instance, java.lang.Class clas, java.lang.String mname)
public ClassMemberLocation(java.lang.Object instance, java.lang.reflect.Field field)
public final java.lang.Object getInstance()
public final void setInstance(java.lang.Object obj)
public java.lang.String getMemberName()
public ClassType getDeclaringClass()
public java.lang.String getDeclaringClassname()
public java.lang.reflect.Field getRField()
public java.lang.Class getRClass()
Class
this member is in.public boolean isConstant()
isConstant
in class Location<T>
public static void define(java.lang.Object instance, java.lang.reflect.Field rfield, java.lang.String uri, Language language, Environment env) throws java.lang.IllegalAccessException
java.lang.IllegalAccessException
public static void defineAll(java.lang.Object instance, Language language, Environment env) throws java.lang.IllegalAccessException
java.lang.IllegalAccessException