Interface Selector
- All Known Subinterfaces:
CharacterDataSelector, ConditionalSelector, DescendantSelector, ElementSelector, NegativeSelector, ProcessingInstructionSelector, SiblingSelector, SimpleSelector
public interface Selector
This interface defines a selector.
Remarks: Not all the following selectors are supported (or will be supported) by CSS.
All examples are CSS2 compliant.
- Version:
- $Revision: 477010 $
- Author:
- Philippe Le Hegaret
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortThis selector matches any node.static final shortThis selector matches only cdata node.static final shortThis selector matches a childhood relationship between two elements.static final shortThis selector matches only comment node.static final shortThis is a conditional selector.static final shortThis selector matches an arbitrary descendant of some ancestor element.static final shortThis selector matches two selectors who shared the same parent in the document tree and the element represented by the first sequence immediately precedes the element represented by the second one.static final shortThis selector matches only element node.static final shortThis selector matches only node that are different from a specified one.static final shortThis selector matches only processing instruction node.static final shortThis selector matches the 'first line' pseudo element.static final shortThis selector matches the root node.static final shortThis selector matches only text node. -
Method Summary
Modifier and TypeMethodDescriptionshortAn integer indicating the type ofSelector
-
Field Details
-
SAC_CONDITIONAL_SELECTOR
static final short SAC_CONDITIONAL_SELECTORThis is a conditional selector. example:simple[role="private"] .part1 H1#myId P:lang(fr).p1
- See Also:
-
SAC_ANY_NODE_SELECTOR
static final short SAC_ANY_NODE_SELECTORThis selector matches any node.- See Also:
-
SAC_ROOT_NODE_SELECTOR
static final short SAC_ROOT_NODE_SELECTORThis selector matches the root node.- See Also:
-
SAC_NEGATIVE_SELECTOR
static final short SAC_NEGATIVE_SELECTORThis selector matches only node that are different from a specified one.- See Also:
-
SAC_ELEMENT_NODE_SELECTOR
static final short SAC_ELEMENT_NODE_SELECTORThis selector matches only element node. example:H1 animate
- See Also:
-
SAC_TEXT_NODE_SELECTOR
static final short SAC_TEXT_NODE_SELECTORThis selector matches only text node.- See Also:
-
SAC_CDATA_SECTION_NODE_SELECTOR
static final short SAC_CDATA_SECTION_NODE_SELECTORThis selector matches only cdata node.- See Also:
-
SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR
static final short SAC_PROCESSING_INSTRUCTION_NODE_SELECTORThis selector matches only processing instruction node.- See Also:
-
SAC_COMMENT_NODE_SELECTOR
static final short SAC_COMMENT_NODE_SELECTORThis selector matches only comment node.- See Also:
-
SAC_PSEUDO_ELEMENT_SELECTOR
static final short SAC_PSEUDO_ELEMENT_SELECTORThis selector matches the 'first line' pseudo element. example::first-line
- See Also:
-
SAC_DESCENDANT_SELECTOR
static final short SAC_DESCENDANT_SELECTORThis selector matches an arbitrary descendant of some ancestor element. example:E F
- See Also:
-
SAC_CHILD_SELECTOR
static final short SAC_CHILD_SELECTORThis selector matches a childhood relationship between two elements. example:E > F
- See Also:
-
SAC_DIRECT_ADJACENT_SELECTOR
static final short SAC_DIRECT_ADJACENT_SELECTORThis selector matches two selectors who shared the same parent in the document tree and the element represented by the first sequence immediately precedes the element represented by the second one. example:E + F
- See Also:
-
-
Method Details
-
getSelectorType
short getSelectorType()An integer indicating the type ofSelector
-