Class DirectAdjacentSelectorImpl
- java.lang.Object
-
- com.steadystate.css.parser.selectors.DirectAdjacentSelectorImpl
-
- All Implemented Interfaces:
java.io.Serializable
,Selector
,SiblingSelector
public class DirectAdjacentSelectorImpl extends java.lang.Object implements SiblingSelector, java.io.Serializable
- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description DirectAdjacentSelectorImpl(short nodeType, Selector child, SimpleSelector directAdjacent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getNodeType()
The node type to considered in the siblings list.Selector
getSelector()
Returns the first selector.short
getSelectorType()
An integer indicating the type ofSelector
SimpleSelector
getSiblingSelector()
java.lang.String
toString()
-
-
-
Constructor Detail
-
DirectAdjacentSelectorImpl
public DirectAdjacentSelectorImpl(short nodeType, Selector child, SimpleSelector directAdjacent)
-
-
Method Detail
-
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
public Selector getSelector()
Description copied from interface:SiblingSelector
Returns the first selector.- Specified by:
getSelector
in interfaceSiblingSelector
-
getSiblingSelector
public SimpleSelector getSiblingSelector()
- Specified by:
getSiblingSelector
in interfaceSiblingSelector
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-