com.steadystate.css.parser.selectors
Class ConditionalSelectorImpl

java.lang.Object
  extended by com.steadystate.css.parser.selectors.ConditionalSelectorImpl
All Implemented Interfaces:
java.io.Serializable, ConditionalSelector, Selector, SimpleSelector

public class ConditionalSelectorImpl
extends java.lang.Object
implements ConditionalSelector, 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
 
Constructor Summary
ConditionalSelectorImpl(SimpleSelector simpleSelector, Condition condition)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConditionalSelectorImpl

public ConditionalSelectorImpl(SimpleSelector simpleSelector,
                               Condition condition)
Method Detail

getSelectorType

public short getSelectorType()
Description copied from interface: Selector
An integer indicating the type of Selector

Specified by:
getSelectorType in interface Selector

getSimpleSelector

public SimpleSelector getSimpleSelector()
Description copied from interface: ConditionalSelector
Returns the simple selector.

The simple selector can't be a ConditionalSelector.

Specified by:
getSimpleSelector in interface ConditionalSelector

getCondition

public Condition getCondition()
Description copied from interface: ConditionalSelector
Returns the condition to be applied on the simple selector.

Specified by:
getCondition in interface ConditionalSelector

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object