com.steadystate.css.parser.selectors
public class ConditionalSelectorImpl extends java.lang.Object implements ConditionalSelector, java.io.Serializable
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
Constructor and Description |
---|
ConditionalSelectorImpl(SimpleSelector simpleSelector,
Condition condition) |
Modifier and Type | Method and Description |
---|---|
Condition |
getCondition()
Returns the condition to be applied on the simple selector.
|
short |
getSelectorType()
An integer indicating the type of
Selector |
SimpleSelector |
getSimpleSelector()
Returns the simple selector.
|
java.lang.String |
toString() |
public ConditionalSelectorImpl(SimpleSelector simpleSelector, Condition condition)
public short getSelectorType()
Selector
Selector
getSelectorType
in interface Selector
public SimpleSelector getSimpleSelector()
ConditionalSelector
The simple selector can't be a ConditionalSelector
.
getSimpleSelector
in interface ConditionalSelector
public Condition getCondition()
ConditionalSelector
getCondition
in interface ConditionalSelector
public java.lang.String toString()
toString
in class java.lang.Object