Package eu.bandm.tools.lexic
Class TokenFragment.Success
java.lang.Object
eu.bandm.tools.lexic.TokenFragment.Success
- All Implemented Interfaces:
Serializable
- 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
).
- See Also:
-
Field Summary
Fields -
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()