Package eu.bandm.tools.lexic
Class TokenFragment.Success
java.lang.Object
eu.bandm.tools.lexic.TokenFragment.Success
- Enclosing class:
- TokenFragment
Singleton type indicating successful matching.
There are exactly two non-null values of type
Set<Success>
, namely the nonempty set
Collections.singleton(success)
(representing true
), and
the empty set Collections.emptySet()
(representing
false
).
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TokenFragment.Success
fuse
(TokenFragment.Success one, TokenFragment.Success other) Binary function that accepts two references to the singleton and returns one.toString()