| java.lang.Object gnu.mapping.PropertySet gnu.mapping.Procedure gnu.mapping.Procedure2 gnu.kawa.reflect.ClassMethods
Method Summary | |
public static MethodProc | apply(Procedure thisProc, Object arg0, Object arg1) | public static MethodProc | apply(ObjectType dtype, String mname, char mode, Language language) Find methods.
Parameters: dtype - class to search Parameters: mname - method name (already mangled, if need be). Parameters: mode - one of 'P' (use invokespecial). | public Object | apply2(Object arg0, Object arg1) Create a method or generic of the matching methods. | static String | checkName(Expression exp, boolean reversible) Convert an expression to a name. | static String | checkName(Expression exp) Convert an expression to a name. | public static PrimProcedure[] | getMethods(ObjectType dtype, String mname, char mode, ClassType caller, Language language) Return the methods of a class with the specified name and flag.
Parameters: caller - if non-null, check that methods are accessible in it. | public static long | selectApplicable(PrimProcedure[] methods, Type[] atypes) Re-order the methods such that the ones that are definite
applicable (all argtypes is subset of parameter type) are first;
those possibly applicable next (argtype overlaps parameter types);
and ending with those definitely not applicable (some argtype does
overlap its parameter type). |
apply | public static MethodProc apply(ObjectType dtype, String mname, char mode, Language language)(Code) | | Find methods.
Parameters: dtype - class to search Parameters: mname - method name (already mangled, if need be). Parameters: mode - one of 'P' (use invokespecial). 'V' (require this argumenteven if method is static), or '\0' (otherwise). |
apply2 | public Object apply2(Object arg0, Object arg1)(Code) | | Create a method or generic of the matching methods.
Parameters: arg0 - a Class, ClassType, or a String, FString or Symbolthat names a class. Parameters: arg1 - a method name (a String, FString, or Symbol)Loosely the same as GetNamedPart.make(arg0, arg1),but with some extra conversions and checks. |
checkName | static String checkName(Expression exp, boolean reversible)(Code) | | Convert an expression to a name.
a String if the expression has the form of a symbol orstring literal, mangled as needed; otherwise null |
checkName | static String checkName(Expression exp)(Code) | | Convert an expression to a name.
a String if the expression has the form of a symbol orstring literal, with no mangling; otherwise null |
getMethods | public static PrimProcedure[] getMethods(ObjectType dtype, String mname, char mode, ClassType caller, Language language)(Code) | | Return the methods of a class with the specified name and flag.
Parameters: caller - if non-null, check that methods are accessible in it. an array containing the methods. |
selectApplicable | public static long selectApplicable(PrimProcedure[] methods, Type[] atypes)(Code) | | Re-order the methods such that the ones that are definite
applicable (all argtypes is subset of parameter type) are first;
those possibly applicable next (argtype overlaps parameter types);
and ending with those definitely not applicable (some argtype does
overlap its parameter type).
((number of definitely applicable methods) << 32+ (number of possibly applicable methods. |
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)
|
|
|