Enum CssClassSelectorNode.ComponentScoping
- java.lang.Object
-
- java.lang.Enum<CssClassSelectorNode.ComponentScoping>
-
- com.google.common.css.compiler.ast.CssClassSelectorNode.ComponentScoping
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CssClassSelectorNode.ComponentScoping>
- Enclosing class:
- CssClassSelectorNode
public static enum CssClassSelectorNode.ComponentScoping extends java.lang.Enum<CssClassSelectorNode.ComponentScoping>
Specifies the kind or absence of a component scoping prefix.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULTThe classname has no prefix.FORCE_SCOPEDThe classname has a % prefix, to force scoping.FORCE_UNSCOPEDThe classname has a ^ prefix, to prevent scoping.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CssClassSelectorNode.ComponentScopingvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CssClassSelectorNode.ComponentScoping[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final CssClassSelectorNode.ComponentScoping DEFAULT
The classname has no prefix.
-
FORCE_SCOPED
public static final CssClassSelectorNode.ComponentScoping FORCE_SCOPED
The classname has a % prefix, to force scoping.
-
FORCE_UNSCOPED
public static final CssClassSelectorNode.ComponentScoping FORCE_UNSCOPED
The classname has a ^ prefix, to prevent scoping.
-
-
Method Detail
-
values
public static CssClassSelectorNode.ComponentScoping[] 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 (CssClassSelectorNode.ComponentScoping c : CssClassSelectorNode.ComponentScoping.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CssClassSelectorNode.ComponentScoping 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
-
-