Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.mapping.Procedure
gnu.mapping.ProcedureN
gnu.mapping.MethodProc
gnu.expr.PrimProcedure
Field Summary |
Fields inherited from class gnu.mapping.MethodProc | |
NO_MATCH , NO_MATCH_AMBIGUOUS , NO_MATCH_BAD_TYPE , NO_MATCH_TOO_FEW_ARGS , NO_MATCH_TOO_MANY_ARGS , argTypes |
Fields inherited from class gnu.mapping.ProcedureN | |
noArgs |
Constructor Summary | |
| |
| |
| |
| |
| |
| |
| |
|
Method Summary | |
void |
|
void |
|
void |
|
static void |
|
static PrimProcedure |
|
static PrimProcedure |
|
static PrimProcedure |
|
static PrimProcedure |
|
static PrimProcedure |
|
static PrimProcedure |
|
String |
|
Type |
|
Type[] | |
static Class |
|
Type | |
Type |
|
boolean | |
String | |
static PrimProcedure |
|
static PrimProcedure |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
void |
|
void |
|
boolean | |
static boolean |
|
boolean |
|
String |
|
Methods inherited from class gnu.mapping.MethodProc | |
applyN , getParameterType , isApplicable , matchFailAsException , mostSpecific , mostSpecific , numParameters , resolveParameterTypes |
Methods inherited from class gnu.mapping.Procedure | |
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 |
public PrimProcedure(ClassType classtype, Type[] argTypes)
Use to compile new followed by constructor.
public PrimProcedure(int op_code, ClassType classtype, String name, Type retType, Type[] argTypes)
public void compile(ApplyExp exp, Compilation comp, Target target)
- Specified by:
- compile in interface Inlineable
public static void compile(Compilation comp, Method method, Target target, boolean isTailCall, int op_code, Type stackType)
public static PrimProcedure getMethodFor(Class procClass, String name, Declaration decl, Expression[] args, Language language)
Get PrimProcedure for matching method in given class.
public static PrimProcedure getMethodFor(ClassType procClass, String name, Declaration decl, Type[] atypes, Language language)
public static PrimProcedure getMethodFor(ClassType procClass, String name, Declaration decl, Expression[] args, Language language)
public static PrimProcedure getMethodFor(Procedure pproc, Declaration decl, Type[] atypes, Language language)
public static PrimProcedure getMethodFor(Procedure pproc, Declaration decl, Expression[] args, Language language)
Search for a matching static method in a procedure's class.
- Returns:
- a PrimProcedure that is suitable, or null.
public String getName()
public Type getParameterType(int index)
- Overrides:
- getParameterType in interface MethodProc
public static Class getProcedureClass(Object pproc)
public Type getReturnType(Expression[] args)
- Specified by:
- getReturnType in interface Inlineable
public final boolean getStaticFlag()
public String getVerboseName()
public final int opcode()
public void print(java.io.PrintWriter ps)
public boolean takesContext()
public boolean takesVarArgs()
Return true iff the last parameter is a "rest" argument.