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

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

Introduction

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

Prototype

public CssBooleanExpressionNode getRight() 

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  www.  j a va  2  s. c om
    }

    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;
}