Package org.python.core

Examples of org.python.core.ArgParser


        this(TYPE);
    }
    @ExposedNew
    @ExposedMethod
    public void ListComp___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("ListComp", args, keywords, new String[]
            {"elt", "generators", "lineno", "col_offset"}, 2, true);
        setElt(ap.getPyObject(0, Py.None));
        setGenerators(ap.getPyObject(1, Py.None));
        int lin = ap.getInt(2, -1);
        if (lin != -1) {
            setLineno(lin);
        }

        int col = ap.getInt(3, -1);
        if (col != -1) {
            setLineno(col);
        }

    }
View Full Code Here


        this(TYPE);
    }
    @ExposedNew
    @ExposedMethod
    public void AugAssign___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("AugAssign", args, keywords, new String[]
            {"target", "op", "value", "lineno", "col_offset"}, 3, true);
        setTarget(ap.getPyObject(0, Py.None));
        setOp(ap.getPyObject(1, Py.None));
        setValue(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);
        }

    }
View Full Code Here

        this(TYPE);
    }
    @ExposedNew
    @ExposedMethod
    public void Repr___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("Repr", args, keywords, new String[]
            {"value", "lineno", "col_offset"}, 1, true);
        setValue(ap.getPyObject(0, Py.None));
        int lin = ap.getInt(1, -1);
        if (lin != -1) {
            setLineno(lin);
        }

        int col = ap.getInt(2, -1);
        if (col != -1) {
            setLineno(col);
        }

    }
View Full Code Here

        this(TYPE);
    }
    @ExposedNew
    @ExposedMethod
    public void Compare___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("Compare", args, keywords, new String[]
            {"left", "ops", "comparators", "lineno", "col_offset"}, 3, true);
        setLeft(ap.getPyObject(0, Py.None));
        setOps(ap.getPyObject(1, Py.None));
        setComparators(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);
        }

    }
View Full Code Here

        this(TYPE);
    }
    @ExposedNew
    @ExposedMethod
    public void Suite___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("Suite", args, keywords, new String[]
            {"body"}, 1, true);
        setBody(ap.getPyObject(0, Py.None));
    }
View Full Code Here

        this(TYPE);
    }
    @ExposedNew
    @ExposedMethod
    public void ExtSlice___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("ExtSlice", args, keywords, new String[]
            {"dims"}, 1, true);
        setDims(ap.getPyObject(0, Py.None));
    }
View Full Code Here

        this(TYPE);
    }
    @ExposedNew
    @ExposedMethod
    public void keyword___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("keyword", args, keywords, new String[]
            {"arg", "value"}, 2, true);
        setArg(ap.getPyObject(0, Py.None));
        setValue(ap.getPyObject(1, Py.None));
    }
View Full Code Here

        this(TYPE);
    }
    @ExposedNew
    @ExposedMethod
    public void BoolOp___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("BoolOp", args, keywords, new String[]
            {"op", "values", "lineno", "col_offset"}, 2, true);
        setOp(ap.getPyObject(0, Py.None));
        setValues(ap.getPyObject(1, Py.None));
        int lin = ap.getInt(2, -1);
        if (lin != -1) {
            setLineno(lin);
        }

        int col = ap.getInt(3, -1);
        if (col != -1) {
            setLineno(col);
        }

    }
View Full Code Here

        this(TYPE);
    }
    @ExposedNew
    @ExposedMethod
    public void If___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("If", args, keywords, new String[]
            {"test", "body", "orelse", "lineno", "col_offset"}, 3, true);
        setTest(ap.getPyObject(0, Py.None));
        setBody(ap.getPyObject(1, Py.None));
        setOrelse(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);
        }

    }
View Full Code Here

        this(TYPE);
    }
    @ExposedNew
    @ExposedMethod
    public void Index___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("Index", args, keywords, new String[]
            {"value"}, 1, true);
        setValue(ap.getPyObject(0, Py.None));
    }
View Full Code Here

TOP

Related Classes of org.python.core.ArgParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.