Package org.python.core

Examples of org.python.core.ArgParser


        this(TYPE);
    }
    @ExposedNew
    @ExposedMethod
    public void Subscript___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("Subscript", args, keywords, new String[]
            {"value", "slice", "ctx", "lineno", "col_offset"}, 3, true);
        setValue(ap.getPyObject(0, Py.None));
        setSlice(ap.getPyObject(1, Py.None));
        setCtx(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 ExceptHandler___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("ExceptHandler", args, keywords, new String[]
            {"type", "name", "body", "lineno", "col_offset"}, 3, true);
        setExceptType(ap.getPyObject(0, Py.None));
        setName(ap.getPyObject(1, Py.None));
        setBody(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 TryFinally___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("TryFinally", args, keywords, new String[]
            {"body", "finalbody", "lineno", "col_offset"}, 2, true);
        setBody(ap.getPyObject(0, Py.None));
        setFinalbody(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 Expr___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("Expr", 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 Raise___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("Raise", args, keywords, new String[]
            {"type", "inst", "tback", "lineno", "col_offset"}, 3, true);
        setExceptType(ap.getPyObject(0, Py.None));
        setInst(ap.getPyObject(1, Py.None));
        setTback(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 Delete___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("Delete", args, keywords, new String[]
            {"targets", "lineno", "col_offset"}, 1, true);
        setTargets(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 Name___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("Name", args, keywords, new String[]
            {"id", "ctx", "lineno", "col_offset"}, 2, true);
        setId(ap.getPyObject(0, Py.None));
        setCtx(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 Str___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("Str", args, keywords, new String[]
            {"s", "lineno", "col_offset"}, 1, true);
        setS(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 Tuple___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("Tuple", args, keywords, new String[]
            {"elts", "ctx", "lineno", "col_offset"}, 2, true);
        setElts(ap.getPyObject(0, Py.None));
        setCtx(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 Call___init__(PyObject[] args, String[] keywords) {
        ArgParser ap = new ArgParser("Call", args, keywords, new String[]
            {"func", "args", "keywords", "starargs", "kwargs", "lineno", "col_offset"}, 5, true);
        setFunc(ap.getPyObject(0, Py.None));
        setArgs(ap.getPyObject(1, Py.None));
        setKeywords(ap.getPyObject(2, Py.None));
        setStarargs(ap.getPyObject(3, Py.None));
        setKwargs(ap.getPyObject(4, Py.None));
        int lin = ap.getInt(5, -1);
        if (lin != -1) {
            setLineno(lin);
        }

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

    }
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.