| Modifier and Type | Class and Description |
|---|---|
| private static class | SelectorPartitioning.
A Partition corresponds to a selector type, id or styleclass. |
| private static class | |
| private static class | SelectorPartitioning.
A Slot is pointer to the next piece of the selector. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Comparator | |
| private static final int | |
| private final Map | |
| private int | ordinal
Keep track of the order in which a selector is added to the mapping so the original order can be restored for the cascade. |
| private static final int | |
| private final Map | |
| private static final int | |
| private final Map | |
| private static final SelectorPartitioning. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static SelectorPartitioning. | getPartition(SelectorPartitioning.
Helper to lookup an id in the given map, creating and adding a Partition |
| public List | |
| public void | |
| public void |
| COMPARATOR | back to summary |
|---|---|
| private static final Comparator<Selector> COMPARATOR | |
| ID_BIT | back to summary |
|---|---|
| private static final int ID_BIT | |
| idMap | back to summary |
|---|---|
| private final Map<SelectorPartitioning. | |
| ordinal | back to summary |
|---|---|
| private int ordinal Keep track of the order in which a selector is added to the mapping so the original order can be restored for the cascade. | |
| STYLECLASS_BIT | back to summary |
|---|---|
| private static final int STYLECLASS_BIT | |
| styleClassMap | back to summary |
|---|---|
| private final Map<SelectorPartitioning. | |
| TYPE_BIT | back to summary |
|---|---|
| private static final int TYPE_BIT | |
| typeMap | back to summary |
|---|---|
| private final Map<SelectorPartitioning. | |
| WILDCARD | back to summary |
|---|---|
| private static final SelectorPartitioning. | |
| SelectorPartitioning | back to summary |
|---|---|
| public SelectorPartitioning() package accessible | |
| getPartition | back to summary |
|---|---|
| private static SelectorPartitioning. Helper to lookup an id in the given map, creating and adding a Partition | |
| match | back to summary |
|---|---|
| public List Get the list of selectors that match this selector. Package accessible | |
| partition | back to summary |
|---|---|
public void partition(Selector selector)
| |
| reset | back to summary |
|---|---|
| public void reset() clear current partitioning | |
Rules are added to the last Slot or to the Partition. If there is a selector #c { -fx-fill: red; }, then the selector will be added to the Partition for #c. If the selector were for A.b#c, then selector would be added to the slot for '.b' which is in the slot for A in partion #c.
When Node is matched, it picks up the Selectors from the Partition and Slot as the graph is traversed.
| Modifier and Type | Field and Description |
|---|---|
| private final SelectorPartitioning. | |
| private List | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private SelectorPartitioning. | partition(SelectorPartitioning.
This routine finds the slot corresponding to the PartitionKey, creating a Partition and Slot if necessary. |
| key | back to summary |
|---|---|
| private final SelectorPartitioning. | |
| selectors | back to summary |
|---|---|
| private List<Selector> selectors | |
| slots | back to summary |
|---|---|
| private final Map<SelectorPartitioning. | |
| Partition | back to summary |
|---|---|
| private Partition(SelectorPartitioning. | |
| addSelector | back to summary |
|---|---|
| private void addSelector(Selector pair) | |
| partition | back to summary |
|---|---|
| private SelectorPartitioning. This routine finds the slot corresponding to the PartitionKey, creating a Partition and Slot if necessary. | |
| Modifier and Type | Field and Description |
|---|---|
| private final K |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int |
| key | back to summary |
|---|---|
| private final K key | |
| PartitionKey | back to summary |
|---|---|
| private PartitionKey(K key) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| Modifier and Type | Field and Description |
|---|---|
| private final SelectorPartitioning. | |
| private final Map | |
| private List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private SelectorPartitioning. | partition(SelectorPartitioning.
This routine finds the slot corresponding to the PartitionKey, creating a Partition and Slot if necessary. |
| partition | back to summary |
|---|---|
| private final SelectorPartitioning. | |
| referents | back to summary |
|---|---|
| private final Map<SelectorPartitioning. | |
| selectors | back to summary |
|---|---|
| private List<Selector> selectors | |
| Slot | back to summary |
|---|---|
| private Slot(SelectorPartitioning. | |
| addSelector | back to summary |
|---|---|
| private void addSelector(Selector pair) | |
| partition | back to summary |
|---|---|
| private SelectorPartitioning. This routine finds the slot corresponding to the PartitionKey, creating a Partition and Slot if necessary. | |