Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.steadystate.css.parser.selectors
Class ConditionalSelectorImpl  view ConditionalSelectorImpl download ConditionalSelectorImpl.java

java.lang.Object
  extended bycom.steadystate.css.parser.selectors.ConditionalSelectorImpl
All Implemented Interfaces:
org.w3c.css.sac.ConditionalSelector, org.w3c.css.sac.Selector, java.io.Serializable, org.w3c.css.sac.SimpleSelector

public class ConditionalSelectorImpl
extends java.lang.Object
implements org.w3c.css.sac.ConditionalSelector, java.io.Serializable


Field Summary
private  org.w3c.css.sac.Condition _condition
           
private  org.w3c.css.sac.SimpleSelector _simpleSelector
           
 
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(org.w3c.css.sac.SimpleSelector simpleSelector, org.w3c.css.sac.Condition condition)
           
 
Method Summary
 org.w3c.css.sac.Condition getCondition()
          Returns the condition to be applied on the simple selector.
 short getSelectorType()
          An integer indicating the type of Selector
 org.w3c.css.sac.SimpleSelector getSimpleSelector()
          Returns the simple selector.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_simpleSelector

private org.w3c.css.sac.SimpleSelector _simpleSelector

_condition

private org.w3c.css.sac.Condition _condition
Constructor Detail

ConditionalSelectorImpl

public ConditionalSelectorImpl(org.w3c.css.sac.SimpleSelector simpleSelector,
                               org.w3c.css.sac.Condition condition)
Method Detail

getSelectorType

public short getSelectorType()
Description copied from interface: org.w3c.css.sac.Selector
An integer indicating the type of Selector

Specified by:
getSelectorType in interface org.w3c.css.sac.Selector

getSimpleSelector

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

The simple selector can't be a ConditionalSelector.

Specified by:
getSimpleSelector in interface org.w3c.css.sac.ConditionalSelector

getCondition

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

Specified by:
getCondition in interface org.w3c.css.sac.ConditionalSelector

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).