public interface ICSSSelector extends ICSSNode
ICSSRule
has one or many selectors
connected by combinators. Currently, only descendant combinator is
supported.
A selector can optionally have one or many ICSSSelectorCondition
's.
Some of the W3C specifications and API might call this a "simple selector". Since we do not implement the whole W3C SAC API stack, there's no concept of "complex" selector. That's why it is called a "selector" instead of a "simple selector".
UNKNOWN
Modifier and Type | Method and Description |
---|---|
ICSSCombinator |
getCombinator()
Get the combinator of this selector if it exists.
|
com.google.common.collect.ImmutableList<ICSSSelectorCondition> |
getConditions()
Get selector conditions.
|
String |
getCSSSyntax()
This API is explicitly added so that no CSS compilation logic will depend
on
toString() value of an ICSSNode . |
String |
getElementName()
Get the element name.
|
String |
getNamespacePrefix()
Get the namespace prefix.
|
boolean |
isAdvanced()
Check if a selector uses Flex 4 advanced syntax.
|
getArity, getNthChild, getOperator, toStringTree
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
ICSSCombinator getCombinator()
String getElementName()
Label
is the element name
for "s|Label.noBorder
".String getNamespacePrefix()
mx
is the namespace
prefix for "mx|Button
".com.google.common.collect.ImmutableList<ICSSSelectorCondition> getConditions()
Example: selector conditions.
s|Button.rounded#main:upIn this selector, the conditions are "
.rounded
", "#main
"
and ":up
".String getCSSSyntax()
toString()
value of an ICSSNode
.boolean isAdvanced()
-compatibility-version=3
mode.Copyright © 2016 The Apache Software Foundation. All rights reserved.