com.steadystate.css.parser.selectors
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
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DirectAdjacentSelectorImpl
public DirectAdjacentSelectorImpl(short nodeType,
Selector child,
SimpleSelector directAdjacent)
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 interface SiblingSelector
getSelectorType
public short getSelectorType()
- Description copied from interface:
Selector
- An integer indicating the type of
Selector
- Specified by:
getSelectorType
in interface Selector
getSelector
public Selector getSelector()
- Description copied from interface:
SiblingSelector
- Returns the first selector.
- Specified by:
getSelector
in interface SiblingSelector
getSiblingSelector
public SimpleSelector getSiblingSelector()
- Specified by:
getSiblingSelector
in interface SiblingSelector
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object