public class DeclarationMap extends MultiMap<Element,Selector.PseudoDeclaration,List<Declaration>>
| Constructor and Description |
|---|
DeclarationMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeclaration(Element el,
Selector.PseudoDeclaration pseudo,
Declaration decl)
Adds a declaration for a specified list.
|
protected List<Declaration> |
createDataInstance()
Creates a new instance of the data value.
|
void |
sortDeclarations(Element el,
Selector.PseudoDeclaration pseudo)
Sorts the given list according to the rule specificity.
|
public void addDeclaration(Element el, Selector.PseudoDeclaration pseudo, Declaration decl)
el - the element that the declaration belongs topseudo - an optional pseudo-element or nulldecl - the new declarationpublic void sortDeclarations(Element el, Selector.PseudoDeclaration pseudo)
el - the element to which the list is assignedpseudo - an optional pseudo-element or nullprotected List<Declaration> createDataInstance()
MultiMapMultiMap.getOrCreate(Object, Object).createDataInstance in class MultiMap<Element,Selector.PseudoDeclaration,List<Declaration>>Copyright © 2014. All rights reserved.