public class DeclarationImpl extends AbstractRule<Term<?>> implements Declaration
Declaration.Source| Modifier and Type | Field and Description |
|---|---|
protected boolean |
important |
protected String |
property |
protected Declaration.Source |
source |
hash, listmodCount| Modifier | Constructor and Description |
|---|---|
protected |
DeclarationImpl() |
protected |
DeclarationImpl(Declaration clone)
Shallow copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Declaration o)
This declaration type is not about to be compared
using precise conditions
|
boolean |
equals(Object obj) |
int |
getInheritanceLevel() |
String |
getProperty() |
Declaration.Source |
getSource() |
int |
hashCode() |
boolean |
isImportant() |
boolean |
isInherited(int level)
This declaration type is never inherited
|
void |
setImportant(boolean important) |
void |
setProperty(String property) |
void |
setSource(Declaration.Source src) |
String |
toString() |
String |
toString(int depth)
Pretty output of CSS definition using indentation
|
add, 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, waitasList, replaceAll, unlockprotected String property
protected boolean important
protected Declaration.Source source
protected DeclarationImpl()
protected DeclarationImpl(Declaration clone)
clone - Declaration to share term values withpublic boolean isInherited(int level)
falsepublic int getInheritanceLevel()
public int compareTo(Declaration o)
compareTo in interface Comparable<Declaration>public String getProperty()
getProperty in interface Declarationpublic void setProperty(String property)
setProperty in interface Declarationproperty - the property to setpublic boolean isImportant()
isImportant in interface Declarationpublic void setImportant(boolean important)
setImportant in interface Declarationimportant - the important to setpublic Declaration.Source getSource()
getSource in interface Declarationpublic void setSource(Declaration.Source src)
setSource in interface Declarationpublic String toString()
toString in class AbstractCollection<Term<?>>public String toString(int depth)
PrettyOutputtoString in interface PrettyOutputdepth - Number of times output is indentedOutputUtilpublic int hashCode()
hashCode in interface Collection<Term<?>>hashCode in interface List<Term<?>>hashCode in class AbstractRule<Term<?>>public boolean equals(Object obj)
equals in interface Collection<Term<?>>equals in interface List<Term<?>>equals in class AbstractRule<Term<?>>Copyright © 2014. All rights reserved.