gnu.kawa.reflect

Class ClassMemberLocation

public class ClassMemberLocation extends Location

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.)
Constructor Summary
ClassMemberLocation(Object instance, ClassType type, String mname)
ClassMemberLocation(Object instance, Class clas, String mname)
ClassMemberLocation(Object instance, Field field)
Method Summary
static voiddefine(Object instance, Field rfield, String uri, Language language, Environment env)
static voiddefineAll(Object instance, Environment env)
Import all the public fields of an object.
Objectget(Object defaultValue)
ClassTypegetDeclaringClass()
ObjectgetInstance()
StringgetMemberName()
FieldgetRField()
booleanisBound()
booleanisConstant()
voidset(Object value)
voidsetInstance(Object obj)

Constructor Detail

ClassMemberLocation

public ClassMemberLocation(Object instance, ClassType type, String mname)

ClassMemberLocation

public ClassMemberLocation(Object instance, Class clas, String mname)

ClassMemberLocation

public ClassMemberLocation(Object instance, Field field)

Method Detail

define

public static void define(Object instance, Field rfield, String uri, Language language, Environment env)

defineAll

public static void defineAll(Object instance, Environment env)
Import all the public fields of an object.

get

public Object get(Object defaultValue)

getDeclaringClass

public ClassType getDeclaringClass()

getInstance

public final Object getInstance()

getMemberName

public String getMemberName()

getRField

public Field getRField()

isBound

public boolean isBound()

isConstant

public boolean isConstant()

set

public void set(Object value)

setInstance

public final void setInstance(Object obj)