Package org.spdx.tag
Class HandBuiltParser
java.lang.Object
org.spdx.tag.HandBuiltParser
I'm hoping this is a temporary solution. This is a hand built parser to parse
SPDX tag files. It replaces the current ANTL based parser which has a defect
where any lines starting with a text ending with a : is treated as a tag even
if it is in
<text> </text>
.
The interface is similar to the generated ANTLR code.- Author:
- Gary O'Neall
-
Constructor Summary
ConstructorsConstructorDescriptionHandBuiltParser
(NoCommentInputStream textInput) Creates a parser for an Input stream. -
Method Summary
Modifier and TypeMethodDescriptionvoid
data()
parses the datavoid
setBehavior
(TagValueBehavior buildDocument)
-
Constructor Details
-
HandBuiltParser
Creates a parser for an Input stream. The input stream must not use any comments.- Parameters:
textInput
-
-
-
Method Details
-
setBehavior
- Parameters:
buildDocument
-
-
data
parses the data- Throws:
Exception
-