Class DirectAdjacentSelectorImpl
java.lang.Object
com.steadystate.css.parser.selectors.DirectAdjacentSelectorImpl
- All Implemented Interfaces:
Serializable
,Selector
,SiblingSelector
- See Also:
-
Field Summary
Fields inherited from interface org.w3c.css.sac.Selector
SAC_ANY_NODE_SELECTOR, SAC_CDATA_SECTION_NODE_SELECTOR, SAC_CHILD_SELECTOR, SAC_COMMENT_NODE_SELECTOR, SAC_CONDITIONAL_SELECTOR, SAC_DESCENDANT_SELECTOR, SAC_DIRECT_ADJACENT_SELECTOR, SAC_ELEMENT_NODE_SELECTOR, SAC_NEGATIVE_SELECTOR, SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR, SAC_PSEUDO_ELEMENT_SELECTOR, SAC_ROOT_NODE_SELECTOR, SAC_TEXT_NODE_SELECTOR
Fields inherited from interface org.w3c.css.sac.SiblingSelector
ANY_NODE
-
Constructor Summary
ConstructorsConstructorDescriptionDirectAdjacentSelectorImpl
(short nodeType, Selector child, SimpleSelector directAdjacent) -
Method Summary
Modifier and TypeMethodDescriptionshort
The node type to considered in the siblings list.Returns the first selector.short
An integer indicating the type ofSelector
toString()
-
Constructor Details
-
DirectAdjacentSelectorImpl
-
-
Method Details
-
getNodeType
public short getNodeType()Description copied from interface:SiblingSelector
The node type to considered in the siblings list. All DOM node types are supported. In order to support the "any" node type, the code ANY_NODE is added to the DOM node types.- Specified by:
getNodeType
in interfaceSiblingSelector
-
getSelectorType
public short getSelectorType()Description copied from interface:Selector
An integer indicating the type ofSelector
- Specified by:
getSelectorType
in interfaceSelector
-
getSelector
Description copied from interface:SiblingSelector
Returns the first selector.- Specified by:
getSelector
in interfaceSiblingSelector
-
getSiblingSelector
- Specified by:
getSiblingSelector
in interfaceSiblingSelector
-
toString
-