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 shortgetNodeType()The node type to considered in the siblings list.SelectorgetSelector()Returns the first selector.shortgetSelectorType()An integer indicating the type ofSelectorSimpleSelectorgetSiblingSelector()java.lang.StringtoString()
-
-
-
Constructor Detail
-
DirectAdjacentSelectorImpl
public DirectAdjacentSelectorImpl(short nodeType, Selector child, SimpleSelector directAdjacent)
-
-
Method Detail
-
getNodeType
public short getNodeType()
Description copied from interface:SiblingSelectorThe 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:
getNodeTypein interfaceSiblingSelector
-
getSelectorType
public short getSelectorType()
Description copied from interface:SelectorAn integer indicating the type ofSelector- Specified by:
getSelectorTypein interfaceSelector
-
getSelector
public Selector getSelector()
Description copied from interface:SiblingSelectorReturns the first selector.- Specified by:
getSelectorin interfaceSiblingSelector
-
getSiblingSelector
public SimpleSelector getSiblingSelector()
- Specified by:
getSiblingSelectorin interfaceSiblingSelector
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-