Package org.boris.xlloop.xloper

Examples of org.boris.xlloop.xloper.XLSRef


        JSONObject jo = new JSONObject(t);
        String name = jo.getString("name");
        JSONArray args = jo.getJSONArray("args");
        String sheetName = (String) jo.opt("sheetName");
        JSONObject caller = (JSONObject) jo.opt("caller");
        XLSRef cref = null;
        if (caller != null) {
            cref = (XLSRef) decode(caller);
        }
        XLoper[] xargs = new XLoper[args.length()];
        for (int i = 0; i < xargs.length; i++) {
View Full Code Here


        case XLoper.xlTypeNum:
            return new XLNum(jo.getDouble("num"));
        case XLoper.xlTypeStr:
            return new XLString(jo.getString("str"));
        case XLoper.xlTypeSRef:
            return new XLSRef(jo.getInt("colFirst"), jo.getInt("colLast"), jo.getInt("rowFirst"), jo.getInt("rowLast"));
        }

        return null;
    }
View Full Code Here

            throw new IOException("Invalid type encountered: " + type);
        }
    }

    private static XLoper decodeSRef(InputStream is) throws IOException {
        return new XLSRef((int) readDoubleWord(is), (int) readDoubleWord(is), (int) readDoubleWord(is),
                (int) readDoubleWord(is));
    }
View Full Code Here

                if (version == 20) {
                    XLBool b = (XLBool) protocol.receive(socket);
                    if (b.bool) {
                        XLoper caller = protocol.receive(socket);
                        XLoper sheetName = protocol.receive(socket);
                        XLSRef cref = null;
                        if (caller instanceof XLSRef)
                            cref = (XLSRef) caller;
                        String namestr = null;
                        if (sheetName instanceof XLString)
                            namestr = ((XLString) sheetName).str;
View Full Code Here

                System.out.print(",");
            System.out.print(args[i]);
        }
        System.out.print(")");
        if (context != null) {
            XLSRef caller = context.getCaller();
            String sname = context.getSheetName();
            if (sname != null) {
                System.out.print(" ");
                System.out.print(sname);
            }
View Full Code Here

TOP

Related Classes of org.boris.xlloop.xloper.XLSRef

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.