Example usage for com.google.common.css.compiler.ast CssBooleanExpressionNode getLeft

List of usage examples for com.google.common.css.compiler.ast CssBooleanExpressionNode getLeft

Introduction

In this page you can find the example usage for com.google.common.css.compiler.ast CssBooleanExpressionNode getLeft.

Prototype

public CssBooleanExpressionNode getLeft() 

Source Link

Usage

From source file:com.google.gwt.resources.gss.PermutationsCollector.java

@Override
public boolean enterConditionalRule(CssConditionalRuleNode node) {
    // unfortunately the VisitController doesn't visit the children of a CssConditionalRuleNode
    for (CssValueNode children : node.getChildren()) {
        if (children instanceof CssBooleanExpressionNode) {
            childrenStack.addFirst((CssBooleanExpressionNode) children);
        }//from  w w  w.  j a  v  a2 s. co m
    }

    while (!childrenStack.isEmpty()) {
        CssBooleanExpressionNode visitingNode = childrenStack.pop();
        visitBooleanExpression(visitingNode);

        if (visitingNode.getLeft() != null) {
            childrenStack.addFirst(visitingNode.getLeft());
        }
        if (visitingNode.getRight() != null) {
            childrenStack.addFirst(visitingNode.getRight());
        }
    }

    return true;
}