Enum Class CssCompositeValueNode.Operator
java.lang.Object
java.lang.Enum<CssCompositeValueNode.Operator>
com.google.common.css.compiler.ast.CssCompositeValueNode.Operator
- All Implemented Interfaces:
Serializable,Comparable<CssCompositeValueNode.Operator>,Constable
- Enclosing class:
- CssCompositeValueNode
Recognized operators.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiontoString()For debugging only.valueOf(char c) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static CssCompositeValueNode.Operator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SPACE
-
COMMA
-
SLASH
-
EQUALS
-
ADD
Must be space-separated to distinguish from unary plus. See https://www.w3.org/TR/css3-values/#calc-syntax. -
SUB
Must be space-separated to distinguish from unary minus. See https://www.w3.org/TR/css3-values/#calc-syntax. -
MULT
-
DIV
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getOperatorName
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
For debugging only. TODO(oana): Get rid of the toString method from all enums.- Overrides:
toStringin classEnum<CssCompositeValueNode.Operator>
-