Package net.sourceforge.plantuml.style
Class StyleAtom
java.lang.Object
net.sourceforge.plantuml.style.StyleAtom
- All Implemented Interfaces:
Comparable<StyleAtom>
One "tag" a style declaration or a query element can carry, put under a single total order
so a
StyleAtomTrie can index both families together instead of keeping a separate
plain/legacy split: a SName (the common, fast path -- compared by ordinal) or a
stereotype name (the rarer path -- compared lexicographically). SName atoms always
sort before stereotype atoms; within a family, atoms sort as described.
This is exactly the "order on SName" the trie design relies on to walk a query's atoms once,
in order, matching them against trie edges instead of re-testing every stored declaration.-
Method Summary
Modifier and TypeMethodDescriptionintbooleangetSName()Non-null only whenisName()is true.Non-null only whenisName()is false.inthashCode()booleanisName()static StyleAtomstatic StyleAtomofStereotype(String stereotype) The stereotype text without its leading dot, already lower-cased.toString()
-
Method Details
-
of
-
ofStereotype
The stereotype text without its leading dot, already lower-cased. -
isName
public boolean isName() -
getSName
Non-null only whenisName()is true. -
getStereotype
Non-null only whenisName()is false. -
compareTo
- Specified by:
compareToin interfaceComparable<StyleAtom>
-
equals
-
hashCode
public int hashCode() -
toString
-