public class GeneralAdjacentSelectorImpl extends LocatableImpl implements SiblingSelector, CSSFormatable, Serializable
ANY_NODESAC_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| Constructor and Description |
|---|
GeneralAdjacentSelectorImpl(short nodeType,
Selector child,
SimpleSelector directAdjacent) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCssText(CSSFormat format)
Returns a string representation of the rule based on the given format.
|
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() |
void |
setNodeType(short nodeType) |
void |
setSelector(Selector child) |
void |
setSiblingSelector(SimpleSelector directAdjacent) |
String |
toString() |
getLocator, setLocatorpublic GeneralAdjacentSelectorImpl(short nodeType,
Selector child,
SimpleSelector directAdjacent)
public void setNodeType(short nodeType)
public void setSelector(Selector child)
public void setSiblingSelector(SimpleSelector directAdjacent)
public short getNodeType()
SiblingSelectorgetNodeType in interface SiblingSelectorpublic short getSelectorType()
SelectorSelectorgetSelectorType in interface Selectorpublic Selector getSelector()
SiblingSelectorgetSelector in interface SiblingSelectorpublic SimpleSelector getSiblingSelector()
getSiblingSelector in interface SiblingSelectorpublic String getCssText(CSSFormat format)
getCssText in interface CSSFormatableformat - the formatting rulesCopyright © 2026. All rights reserved.