Enum CssCompositeValueNode.Operator
- java.lang.Object
-
- java.lang.Enum<CssCompositeValueNode.Operator>
-
- com.google.common.css.compiler.ast.CssCompositeValueNode.Operator
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CssCompositeValueNode.Operator>
- Enclosing class:
- CssCompositeValueNode
public static enum CssCompositeValueNode.Operator extends java.lang.Enum<CssCompositeValueNode.Operator>
Recognized operators.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetOperatorName()java.lang.StringtoString()For debugging only.static CssCompositeValueNode.OperatorvalueOf(char c)Returns the enum constant of this type with the specified name.static CssCompositeValueNode.OperatorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CssCompositeValueNode.Operator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SPACE
public static final CssCompositeValueNode.Operator SPACE
-
COMMA
public static final CssCompositeValueNode.Operator COMMA
-
SLASH
public static final CssCompositeValueNode.Operator SLASH
-
EQUALS
public static final CssCompositeValueNode.Operator EQUALS
-
ADD
public static final CssCompositeValueNode.Operator ADD
Must be space-separated to distinguish from unary plus. See https://www.w3.org/TR/css3-values/#calc-syntax.
-
SUB
public static final CssCompositeValueNode.Operator SUB
Must be space-separated to distinguish from unary minus. See https://www.w3.org/TR/css3-values/#calc-syntax.
-
MULT
public static final CssCompositeValueNode.Operator MULT
-
DIV
public static final CssCompositeValueNode.Operator DIV
-
UNKNOWN
public static final CssCompositeValueNode.Operator UNKNOWN
-
-
Method Detail
-
values
public static CssCompositeValueNode.Operator[] 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 (CssCompositeValueNode.Operator c : CssCompositeValueNode.Operator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CssCompositeValueNode.Operator 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
-
getOperatorName
public java.lang.String getOperatorName()
-
valueOf
public static CssCompositeValueNode.Operator valueOf(char c)
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:
c- 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
-
toString
public java.lang.String toString()
For debugging only. TODO(oana): Get rid of the toString method from all enums.- Overrides:
toStringin classjava.lang.Enum<CssCompositeValueNode.Operator>
-
-