Class BooleanExpressionEvaluator
- java.lang.Object
-
- com.google.common.css.compiler.passes.BooleanExpressionEvaluator
-
public class BooleanExpressionEvaluator extends java.lang.ObjectAn evaluator for boolean expressions. The evaluation returns a new boolean expression node corresponding to true, false, or to the condition if that was not recognized.
-
-
Constructor Summary
Constructors Constructor Description BooleanExpressionEvaluator(CssBooleanExpressionNode expression, java.util.Set<java.lang.String> trueConditions)Evaluates a boolean expression given a set of true conditions.BooleanExpressionEvaluator(CssBooleanExpressionNode expression, java.util.Set<java.lang.String> trueConditions, java.util.Set<java.lang.String> falseConditions)Evaluates a boolean expression given a set of true conditions and a set of false conditions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CssBooleanExpressionNodeevaluate()Evaluates the boolean expression associated with this evaluator.
-
-
-
Constructor Detail
-
BooleanExpressionEvaluator
public BooleanExpressionEvaluator(CssBooleanExpressionNode expression, java.util.Set<java.lang.String> trueConditions)
Evaluates a boolean expression given a set of true conditions. Conditions that are not in the set are assumed to be false.
-
BooleanExpressionEvaluator
public BooleanExpressionEvaluator(CssBooleanExpressionNode expression, java.util.Set<java.lang.String> trueConditions, java.util.Set<java.lang.String> falseConditions)
Evaluates a boolean expression given a set of true conditions and a set of false conditions. Conditions that are not in any of the sets are assumed to be unknown and are left in the resulting boolean expression.
-
-
Method Detail
-
evaluate
public CssBooleanExpressionNode evaluate()
Evaluates the boolean expression associated with this evaluator.
-
-