Package galoot.types

Examples of galoot.types.BlockFragment


         * already been used in the current document.
         */

        if (parentDocument != null)
        {
            BlockFragment parentBlock = parentDocument.getDocumentBlock();
            existsInParent = blockName != null
                    && parentBlock.hasBlock(blockName);

            if ((curBlockDepth == 0 && existsInParent)
                    || (curBlockDepth > 0 && !existsInParent))
                evaluate = true;
        }
        else if (blockName != null && document.hasBlock(blockName))
            throw new RuntimeException("Block already exists with name: "
                    + blockName);
        else
            evaluate = true;

        if (evaluate)
        {
            // push on a new context
            context.push();

            // add a new BlockFragment to the document
            BlockFragment newBlock = new BlockFragment(blockName);
            document.addContent(newBlock);

            /*
             * If it existed in the parent, and top-level, we add a special
             * variable to the context, which is essentially a "super" lookup.
View Full Code Here

TOP

Related Classes of galoot.types.BlockFragment

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.