public enum SelectorPartType extends Enum<SelectorPartType>
SelectorPart
. Checking against SelectorPart.type()
can be
useful in place of using instanceof.
Enum Constant and Description |
---|
ADJACENT_SIBLING_COMBINATOR
an adjacent sibling combinator
|
ATTRIBUTE_SELECTOR
an attribute selector
|
CHILD_COMBINATOR
a child combinator
|
CLASS_SELECTOR
a class selector
|
CUSTOM
custom syntax
|
DESCENDANT_COMBINATOR
a descendant combinator
|
GENERAL_SIBLING_COMBINATOR
a general sibling combinator
|
ID_SELECTOR
an id selector
|
KEYFRAMES_SELECTOR
keyframes selector
|
PSEUDO_CLASS_SELECTOR
a pseudo class selector
|
PSEUDO_ELEMENT_SELECTOR
a pseudo element selector
|
TYPE_SELECTOR
a type (aka element) selector
|
UNIVERSAL_SELECTOR
a universal selector
|
Modifier and Type | Method and Description |
---|---|
boolean |
isCombinator()
Gets whether this type represents a combinator.
|
static SelectorPartType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SelectorPartType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SelectorPartType UNIVERSAL_SELECTOR
public static final SelectorPartType TYPE_SELECTOR
public static final SelectorPartType ID_SELECTOR
public static final SelectorPartType CLASS_SELECTOR
public static final SelectorPartType ATTRIBUTE_SELECTOR
public static final SelectorPartType PSEUDO_CLASS_SELECTOR
public static final SelectorPartType PSEUDO_ELEMENT_SELECTOR
public static final SelectorPartType KEYFRAMES_SELECTOR
public static final SelectorPartType DESCENDANT_COMBINATOR
public static final SelectorPartType CHILD_COMBINATOR
public static final SelectorPartType ADJACENT_SIBLING_COMBINATOR
public static final SelectorPartType GENERAL_SIBLING_COMBINATOR
public static final SelectorPartType CUSTOM
public static SelectorPartType[] values()
for (SelectorPartType c : SelectorPartType.values()) System.out.println(c);
public static SelectorPartType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isCombinator()
Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.