public class AssignedDeclaration extends DeclarationImpl implements Declaration
Declaration.Source| Modifier and Type | Field and Description |
|---|---|
protected StyleSheet.Origin |
origin |
protected CombinedSelector.Specificity |
spec |
important, property, sourcehash, listmodCount| Constructor and Description |
|---|
AssignedDeclaration(Declaration d,
CombinedSelector.Specificity spec,
StyleSheet.Origin origin)
Creates assigned declaration from specificity and shallow copy of declaration
|
AssignedDeclaration(Declaration d,
CombinedSelector s,
StyleSheet.Origin origin)
Creates assigned declaration from selector and shallow copy of declaration
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Declaration other)
This declaration type is not about to be compared
using precise conditions
|
boolean |
equals(Object obj) |
int |
getOriginOrder()
Computes the priority order of the declaration based on its origin and importance
according to the CSS specification.
|
int |
hashCode() |
getInheritanceLevel, getProperty, getSource, isImportant, isInherited, setImportant, setProperty, setSource, toString, toStringadd, add, asList, get, iterator, remove, replaceAll, set, size, unlockaddAll, clear, indexOf, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetProperty, getSource, isImportant, setImportant, setProperty, setSourceasList, replaceAll, unlockadd, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArraytoStringprotected CombinedSelector.Specificity spec
protected StyleSheet.Origin origin
public AssignedDeclaration(Declaration d, CombinedSelector.Specificity spec, StyleSheet.Origin origin)
d - Declaration to be shallow-copiedspec - Specificitypublic AssignedDeclaration(Declaration d, CombinedSelector s, StyleSheet.Origin origin)
d - Declaration to be shallow-copieds - CombinedSelector, which's specificity is computed insidepublic int compareTo(Declaration other)
DeclarationImplcompareTo in interface Comparable<Declaration>compareTo in class DeclarationImplpublic int getOriginOrder()
public int hashCode()
hashCode in interface Collection<Term<?>>hashCode in interface List<Term<?>>hashCode in class DeclarationImplpublic boolean equals(Object obj)
equals in interface Collection<Term<?>>equals in interface List<Term<?>>equals in class DeclarationImplCopyright © 2014. All rights reserved.