CSSRule to determine whether or not the Selector applies to a
given object.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private Rule | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public abstract boolean | |
| public abstract boolean | Returns: true if this Selector and a set of PseudoClass
applies to the given Styleablethe styleable, Set<PseudoClass>[] Styleable to matcha set of triggerStates, int PseudoClass statesdepth of the depth)Node heirarchy to look forGets whether this |
| public abstract Match | |
| public static Selector | Returns: aSelectorCSS selector string cssSelector)Creates a |
| public int | |
| public Rule | |
| pack-priv static Selector | |
| pack-priv static Selector | readBinary(int
bss version identifier bssVersion, DataInputStream DataInputStream to read Selector data fromstring array containing selector details strings)Reads binary |
| public void | |
| pack-priv void | |
| public abstract boolean | Returns: true if the current state of the node and its parents
matches the pseudo-classes defined (if any) for this selectorthe styleable styleable, Set<PseudoClass> the state state)Determines whether the current state of the |
| protected void | writeBinary(DataOutputStream
DataOutputStream to write Selector data tounused stringStoreWrites |
| ordinal | back to summary |
|---|---|
| private int ordinal | |
| rule | back to summary |
|---|---|
| private Rule rule | |
| TYPE_COMPOUND | back to summary |
|---|---|
| private static final int TYPE_COMPOUND | |
| TYPE_SIMPLE | back to summary |
|---|---|
| private static final int TYPE_SIMPLE | |
| Selector | back to summary |
|---|---|
| pack-priv Selector() Package scoped constructor. | |
| applies | back to summary |
|---|---|
| public abstract boolean applies(Styleable styleable) Gets whether this
| |
| applies | back to summary |
|---|---|
| public abstract boolean applies(Styleable styleable, Set<PseudoClass>[] triggerStates, int depth) Gets whether this
| |
| createMatch | back to summary |
|---|---|
| public abstract Match createMatch() Creates a
| |
| createSelector | back to summary |
|---|---|
| public static Selector createSelector(final String cssSelector) Creates a | |
| getOrdinal | back to summary |
|---|---|
| public int getOrdinal() Gets the ordinal of this Selector.
| |
| getRule | back to summary |
|---|---|
| public Rule getRule() Gets the
| |
| getUniversalSelector | back to summary |
|---|---|
| pack-priv static Selector getUniversalSelector() | |
| readBinary | back to summary |
|---|---|
| pack-priv static Selector readBinary(int bssVersion, DataInputStream is, String[] strings) throws IOException Reads binary
| |
| setOrdinal | back to summary |
|---|---|
| public void setOrdinal(int ordinal) Sets the ordinal of this Selector.
| |
| setRule | back to summary |
|---|---|
| pack-priv void setRule(Rule rule) Sets the
| |
| stateMatches | back to summary |
|---|---|
| public abstract boolean stateMatches(Styleable styleable, Set<PseudoClass> state) Determines whether the current state of the
| |
| writeBinary | back to summary |
|---|---|
| protected void writeBinary(DataOutputStream os, StyleConverter. Writes
| |
| Access | Constructor and Description |
|---|---|
| private |
| INSTANCE | back to summary |
|---|---|
| private static final Selector INSTANCE | |
| UniversalSelector | back to summary |
|---|---|
| private UniversalSelector() | |