public MatchObject search(PyObject[] args, String[] kws) { ArgParser ap = new ArgParser("search", args, kws, "pattern", "pos", "endpos"); String string = ap.getString(0); int start = ap.getInt(1, 0); int end = ap.getInt(2, string.length()); ...
858687888990919293949596979899100101102103104105
this(TYPE); } @ExposedNew @ExposedMethod public void BinOp___init__(PyObject[] args, String[] keywords) { ArgParser ap = new ArgParser("BinOp", args, keywords, new String[] {"left", "op", "right", "lineno", "col_offset"}, 3, true); setLeft(ap.getPyObject(0, Py.None)); setOp(ap.getPyObject(1, Py.None)); setRight(ap.getPyObject(2, Py.None)); int lin = ap.getInt(3, -1); if (lin != -1) { setLineno(lin); } int col = ap.getInt(4, -1); if (col != -1) { setLineno(col); } }