Package org.jvnet.sorcerer.Tag

Examples of org.jvnet.sorcerer.Tag.Root


        Collections.sort(tags);

        TagStack opened = new TagStack();
        // start with the root tag
        Root root = new Root(sourceFile.length());
        opened.push(root);

        TagScanner upcoming = new TagScanner(tags);

        OUTER:
View Full Code Here


     * Just write sthe body annotated source code without a surrounding
     * <body> tag. This method can be invoked directly if the caller
     * wants to embed the generated HTML into a bigger HTML document.
     */
    public void writeBody(JavaScriptStreamWriter out) throws IOException {
        Root tree = buildTree();
        tree.collectSymbols(out);
        out.resetList();
        out.writeSymbolTable();

        // write the body
        out.println();
        out.resetList();
        out.print("return ");
        tree.write(out);
    }
View Full Code Here

TOP

Related Classes of org.jvnet.sorcerer.Tag.Root

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.