Class AnnotationParser
java.lang.Object
org.infinispan.protostream.impl.parser.AnnotationParser
Parses all annotations it encounters and fails on first syntactic error. Everything that looks like a syntactically
correct annotation will be parsed and returned. At this stage there is no validation of what annotation name is
acceptable or not and no validation of attribute value types, multiplicity, etc. These steps are not part of the
syntactic analysis and will be performed later.
- Since:
- 2.0
- Author:
- [email protected]
-
Constructor Summary
ConstructorDescriptionAnnotationParser
(String input, boolean expectDocNoise) Creates a parser for a given input text. -
Method Summary
-
Constructor Details
-
AnnotationParser
Creates a parser for a given input text.- Parameters:
input
- the input text to parseexpectDocNoise
- indicates if human readable text is expected to be encountered before the annotations
-
-
Method Details
-
parse
Parse the text and extract the annotations.- Returns:
- the list of annotations; name uniqueness is not mandatory at this stage
- Throws:
AnnotationParserException
- if syntax errors are encountered
-