public static void createCall(EvaluationContext context, Expr decl, final Collection<Expr> args,InstList l) throws CompilerException, UndefinedMethod {
MethodInvocation fd = createMethDef(context,args,decl) ;
MethodRef mref = createMethodRef(fd.stub) ;
if (fd.stub.isStatic) {
createStaticCall(context,args,mref.parameters,new InvokeStatic(mref),l) ;
}
else {
if (fd.stub.isPrivate || fd.isSuper || mref.name.equals("<init>")) {
createInstanceCall(context,decl,mref.name,args,mref.parameters,new InvokeSpecial(mref),l) ;
}