gnu.kawa.reflect
public class SlotGet extends Procedure2 implements HasSetter, CanInline, Inlineable
Field Summary | |
---|---|
static SlotGet | field |
static SlotGet | slotRef |
static SlotGet | staticField |
Constructor Summary | |
---|---|
SlotGet(String name, boolean isStatic) | |
SlotGet(String name, boolean isStatic, Procedure setter) |
Method Summary | |
---|---|
Object | apply2(Object arg1, Object arg2) |
void | compile(ApplyExp exp, Compilation comp, Target target) |
static Object | field(Object obj, String fname) |
Type | getReturnType(Expression[] args) |
Procedure | getSetter() |
static Object | getSlotValue(boolean isStatic, Object obj, String name, String fname, String getName, String isName, Language language) The actual gets of finding the field value.
|
Expression | inline(ApplyExp exp, ExpWalker walker) |
static Member | lookupMember(ClassType clas, String name, ClassType caller) Get a named property - field or 'get' accessor method. |
static ApplyExp | makeGetField(Expression value, String fieldName)
Convenience method to make an Expression that gets the value of a field. |
void | set2(Object obj, Object name, Object value) |
void | setN(Object[] args) |
static Object | staticField(Object obj, String fname) |
Parameters: clas the class type declaring the property. name the source (unmangled) name of the property.
Parameters: value evaluates to object that has the named field fieldName name of field in value
Returns: expression that get the name field from value