gnu.kawa.reflect
Class ClassMethodProc
- Externalizable, HasSetter, Named
public class ClassMethodProc
A pairing of (class, method-name) treated as a procedure.
Usually equivalent to
(lambda args (apply invoke-static ctype mname args))
.
However, if the class is null, corresponds to invoke
,
and if method-name
starts with a period,
corresponds to static-field
or field
.
apply , apply , apply0 , apply1 , apply2 , apply3 , apply4 , applyN , check0 , check1 , check2 , check3 , check4 , checkArgCount , checkN , getName , getProperty , getSetter , getSymbol , match0 , match1 , match2 , match3 , match4 , matchN , maxArgs , minArgs , name , numArgs , removeProperty , set0 , set1 , setN , setName , setProperty , setProperty , setSetter , setSymbol , toString |
CAST_METHOD_NAME
public static final String CAST_METHOD_NAME
Pseudo-method-name for the cast operation.
INSTANCEOF_METHOD_NAME
public static final String INSTANCEOF_METHOD_NAME
Pseudo-method-name for class-membership-test (instanceof) operation.
makeMethod
public static final Method makeMethod
makeMethodExp
public static final QuoteExp makeMethodExp
applyN
public Object applyN(Object[] args)
throws Throwable
- applyN in interface ProcedureN
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
rewrite
public static ApplyExp rewrite(ApplyExp exp)
Rewrite/optimize ((ClassMethodProc:make CLASS "METHOD") args).
setN
public void setN(Object[] args)
throws Throwable
- setN in interface Procedure
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException