| java.lang.Object gnu.mapping.PropertySet gnu.mapping.Procedure gnu.mapping.Procedure2 gnu.kawa.reflect.SlotGet
Method Summary | |
public Object | apply2(Object arg1, Object arg2) | static Class | coerceToClass(Object obj) | public void | compile(ApplyExp exp, Compilation comp, Target target) | public static Object | field(Object obj, String fname) | public Type | getReturnType(Expression[] args) | public Procedure | getSetter() | 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. | public Expression | inline(ApplyExp exp, ExpWalker walker) | public static Member | lookupMember(ClassType clas, String name, ClassType caller) Get a named property - field or 'get' accessor method. | public static ApplyExp | makeGetField(Expression value, String fieldName) Convenience method to make an Expression that gets the value of a field. | public void | set2(Object obj, Object name, Object value) | public void | setN(Object[] args) | public static Object | staticField(Object obj, String fname) |
isStatic | boolean isStatic(Code) | | True if this is a "static-field" operation.
|
getSlotValue | public static Object getSlotValue(boolean isStatic, Object obj, String name, String fname, String getName, String isName, Language language)(Code) | | 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.
|
lookupMember | public static Member lookupMember(ClassType clas, String name, ClassType caller)(Code) | | Get a named property - field or 'get' accessor method.
Parameters: clas - the class type declaring the property. Parameters: name - the source (unmangled) name of the property. |
makeGetField | public static ApplyExp makeGetField(Expression value, String fieldName)(Code) | | Convenience method to make an Expression that gets the value of a field.
Parameters: value - evaluates to object that has the named field Parameters: fieldName - name of field in value expression that get the name field from value |
Methods inherited from gnu.mapping.Procedure | public void apply(CallContext ctx) throws Throwable(Code)(Java Doc) public static void apply(Procedure proc, CallContext ctx) throws Throwable(Code)(Java Doc) abstract public Object apply0() throws Throwable(Code)(Java Doc) abstract public Object apply1(Object arg1) throws Throwable(Code)(Java Doc) abstract public Object apply2(Object arg1, Object arg2) throws Throwable(Code)(Java Doc) abstract public Object apply3(Object arg1, Object arg2, Object arg3) throws Throwable(Code)(Java Doc) abstract public Object apply4(Object arg1, Object arg2, Object arg3, Object arg4) throws Throwable(Code)(Java Doc) abstract public Object applyN(Object[] args) throws Throwable(Code)(Java Doc) public void check0(CallContext ctx)(Code)(Java Doc) public void check1(Object arg1, CallContext ctx)(Code)(Java Doc) public void check2(Object arg1, Object arg2, CallContext ctx)(Code)(Java Doc) public void check3(Object arg1, Object arg2, Object arg3, CallContext ctx)(Code)(Java Doc) public void check4(Object arg1, Object arg2, Object arg3, Object arg4, CallContext ctx)(Code)(Java Doc) public static void checkArgCount(Procedure proc, int argCount)(Code)(Java Doc) public void checkN(Object[] args, CallContext ctx)(Code)(Java Doc) public Procedure getSetter()(Code)(Java Doc) public String getSourceLocation()(Code)(Java Doc) public int match0(CallContext ctx)(Code)(Java Doc) public int match1(Object arg1, CallContext ctx)(Code)(Java Doc) public int match2(Object arg1, Object arg2, CallContext ctx)(Code)(Java Doc) public int match3(Object arg1, Object arg2, Object arg3, CallContext ctx)(Code)(Java Doc) public int match4(Object arg1, Object arg2, Object arg3, Object arg4, CallContext ctx)(Code)(Java Doc) public int matchN(Object[] args, CallContext ctx)(Code)(Java Doc) final public int maxArgs()(Code)(Java Doc) final public int minArgs()(Code)(Java Doc) public int numArgs()(Code)(Java Doc) public void set0(Object result) throws Throwable(Code)(Java Doc) public void set1(Object arg1, Object value) throws Throwable(Code)(Java Doc) public void setN(Object[] args) throws Throwable(Code)(Java Doc) public void setSetter(Procedure setter)(Code)(Java Doc) public void setSourceLocation(String file, int line)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|