com.steadystate.css.parser.selectors

Class DirectAdjacentSelectorImpl

Implemented Interfaces:
Selector, Serializable, SiblingSelector

public class DirectAdjacentSelectorImpl
extends java.lang.Object
implements SiblingSelector, Serializable

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

DirectAdjacentSelectorImpl(short nodeType, Selector child, SimpleSelector directAdjacent)

Method Summary

short
getNodeType()
The node type to considered in the siblings list.
Selector
getSelector()
Returns the first selector.
short
getSelectorType()
An integer indicating the type of Selector
SimpleSelector
getSiblingSelector()
String
toString()

Constructor Details

DirectAdjacentSelectorImpl

public DirectAdjacentSelectorImpl(short nodeType,
                                  Selector child,
                                  SimpleSelector directAdjacent)

Method Details

getNodeType

public short getNodeType()
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

getSelector

public Selector getSelector()
Returns the first selector.
Specified by:
getSelector in interface SiblingSelector

getSelectorType

public short getSelectorType()
An integer indicating the type of Selector
Specified by:
getSelectorType in interface Selector

getSiblingSelector

public SimpleSelector getSiblingSelector()
Specified by:
getSiblingSelector in interface SiblingSelector

toString

public String toString()