Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.mapping.PropertySet
gnu.mapping.Procedure
gnu.mapping.Procedure2
gnu.kawa.reflect.SlotGet
Constructor Summary | |
| |
Method Summary | |
Object |
|
void |
|
static Object |
|
Type |
|
Procedure | |
static Object |
|
Expression | |
static Member |
|
static ApplyExp |
|
void |
|
void |
|
static Object |
|
Methods inherited from class gnu.mapping.Procedure2 | |
apply0 , apply1 , apply2 , apply3 , apply4 , applyN , numArgs |
Methods inherited from class gnu.mapping.Procedure | |
apply , apply , apply0 , apply1 , apply2 , apply3 , apply4 , applyN , check0 , check1 , check2 , check3 , check4 , checkArgCount , checkN , getSetter , getSourceLocation , match0 , match1 , match2 , match3 , match4 , matchN , maxArgs , minArgs , numArgs , set0 , set1 , setN , setSetter , setSourceLocation , toString |
Methods inherited from class gnu.mapping.PropertySet | |
getName , getProperty , getSymbol , removeProperty , setName , setProperty , setProperty , setSymbol |
public void compile(ApplyExp exp, Compilation comp, Target target)
- Specified by:
- compile in interface Inlineable
public static Object field(Object obj, String fname)
public Type getReturnType(Expression[] args)
- Specified by:
- getReturnType in interface Inlineable
public 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. The compiler emits calls to this method if the field name is literals but the actual field is not known at compile time. This speeds lookup a bit.
public static Member lookupMember(ClassType clas, String name, ClassType caller)
Get a named property - field or 'get' accessor method.
- Parameters:
clas
- the class type declaring the property.name
- the source (unmangled) name of the property.
public static ApplyExp makeGetField(Expression value, String fieldName)
Convenience method to make an Expression that gets the value of a field.
- Parameters:
value
- evaluates to object that has the named fieldfieldName
- name of field in value
- Returns:
- expression that get the name field from value
public void set2(Object obj, Object name, Object value)
public static Object staticField(Object obj, String fname)