Package jjparse.description
Class Literal
java.lang.Object
jjparse.description.Description
jjparse.description.Literal
- Author:
- Björn Lötters
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Produces aStringthat explains what a correspondingParsing.Parserwould expect according to thisDescription.Methods inherited from class jjparse.description.Description
and, negate, normalize, or
-
Field Details
-
literal
The expectedStringliteral.
-
-
Constructor Details
-
Literal
Construct a newLiteralDescription.- Parameters:
literal- The expectedStringliteral.
-
-
Method Details
-
describe
Description copied from class:DescriptionProduces aStringthat explains what a correspondingParsing.Parserwould expect according to thisDescription.- Specified by:
describein classDescription- Returns:
- An
OptionalStringwhereOptional.empty()is returned in case thisDescriptionisEmpty.
-