Package com.vaadin.sass.internal.tree

Examples of com.vaadin.sass.internal.tree.BlockNode


        nodeStack.pop();
    }

    @Override
    public void startSelector(ArrayList<String> selectors) throws CSSException {
        BlockNode node = new BlockNode(selectors);
        nodeStack.peek().appendChild(node);
        nodeStack.push(node);
    }
View Full Code Here


    }

    private static void modifyTree(Node node) throws Exception {
        for (Node child : node.getChildren()) {
            if (child instanceof BlockNode) {
                BlockNode blockNode = (BlockNode) child;
                String selectorString = blockNode.getSelectors();
                if (extendsMap.get(selectorString) != null) {
                    for (ArrayList<String> sList : extendsMap
                            .get(selectorString)) {
                        ArrayList<String> clone = (ArrayList<String>) sList
                                .clone();
View Full Code Here

        node.setSelectorList(newList);
    }

    private static void combineParentSelectorListToChild(BlockNode node) {
        ArrayList<String> newList = new ArrayList<String>();
        BlockNode parentBlock = (BlockNode) node.getParentNode();
        for (String parentSelector : parentBlock.getSelectorList()) {
            for (String childSelector : node.getSelectorList()) {
                // handle parent selector
                if (childSelector.contains("&")) {
                    newList.add(childSelector.replace("&", parentSelector));
                } else {
View Full Code Here

        nodeStack.pop();
    }

    @Override
    public void startSelector(ArrayList<String> selectors) throws CSSException {
        BlockNode node = new BlockNode(selectors);
        nodeStack.peek().appendChild(node);
        nodeStack.push(node);
    }
View Full Code Here

TOP

Related Classes of com.vaadin.sass.internal.tree.BlockNode

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.