1 package org.python.core; 2 3 public abstract class PyBuiltinFunctionWide extends PyBuiltinFunction { 4 5 public PyBuiltinFunctionWide(Info info) { 6 super(info); 7 } 8 9 public PyObject inst_call(PyObject self) { 10 return inst_call(self,Py.EmptyObjects); 11 } 12 13 public PyObject inst_call(PyObject self, PyObject arg0) { 14 return inst_call(self,new PyObject[] {arg0}); 15 } 16 17 public PyObject inst_call(PyObject self, PyObject arg0, PyObject arg1) { 18 return inst_call(self,new PyObject[] {arg0,arg1}); 19 } 20 21 public PyObject inst_call( 22 PyObject self, 23 PyObject arg0, 24 PyObject arg1, 25 PyObject arg2) { 26 return inst_call(self,new PyObject[] {arg0,arg1,arg2}); 27 } 28 29 public PyObject inst_call( 30 PyObject self, 31 PyObject arg0, 32 PyObject arg1, 33 PyObject arg2, 34 PyObject arg3) { 35 return inst_call(self,new PyObject[] {arg0,arg1,arg2,arg3}); 36 } 37 38 39 40 public PyObject inst_call( 41 PyObject self, 42 PyObject[] args, 43 String [] keywords) { 44 if (keywords.length != 0 ) { 45 throw info.unexpectedCall(args.length,true); 46 } 47 return inst_call(self,args); 48 } 49 50 abstract public PyObject inst_call(PyObject self, PyObject[] args); 51 52 public PyObject __call__(PyObject[] args, String [] keywords) { 53 return inst_call(getSelf(),args, keywords); 54 } 55 56 public PyObject __call__(PyObject[] args) { 57 return inst_call(getSelf(),args); 58 } 59 60 } 61 | Popular Tags |