Enum CssBooleanExpressionNode.Type
- java.lang.Object
-
- java.lang.Enum<CssBooleanExpressionNode.Type>
-
- com.google.common.css.compiler.ast.CssBooleanExpressionNode.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CssBooleanExpressionNode.Type>
- Enclosing class:
- CssBooleanExpressionNode
public static enum CssBooleanExpressionNode.Type extends java.lang.Enum<CssBooleanExpressionNode.Type>
Boolean expression node types. The types are given in the order of their precedence, "!" having the highest priority.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFALSE_CONSTANTstatic java.lang.StringTRUE_CONSTANT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetOperatorString()intgetPriority()Lower numbers are lower priority.booleanisBinaryOperator()booleanisConstant()booleanisOperator()booleanisUnaryOperator()java.lang.StringtoString()For debugging only.static CssBooleanExpressionNode.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CssBooleanExpressionNode.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONSTANT
public static final CssBooleanExpressionNode.Type CONSTANT
-
NOT
public static final CssBooleanExpressionNode.Type NOT
-
AND
public static final CssBooleanExpressionNode.Type AND
-
OR
public static final CssBooleanExpressionNode.Type OR
-
-
Field Detail
-
TRUE_CONSTANT
public static final java.lang.String TRUE_CONSTANT
- See Also:
- Constant Field Values
-
FALSE_CONSTANT
public static final java.lang.String FALSE_CONSTANT
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CssBooleanExpressionNode.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CssBooleanExpressionNode.Type c : CssBooleanExpressionNode.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CssBooleanExpressionNode.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getOperatorString
public java.lang.String getOperatorString()
-
isConstant
public boolean isConstant()
-
isOperator
public boolean isOperator()
-
isBinaryOperator
public boolean isBinaryOperator()
-
isUnaryOperator
public boolean isUnaryOperator()
-
getPriority
public int getPriority()
Lower numbers are lower priority.- Returns:
- priority
-
toString
public java.lang.String toString()
For debugging only.- Overrides:
toStringin classjava.lang.Enum<CssBooleanExpressionNode.Type>
-
-