Package org.spdx.tag

Class HandBuiltParser

java.lang.Object
org.spdx.tag.HandBuiltParser

public class HandBuiltParser extends Object
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 Details

    • HandBuiltParser

      public HandBuiltParser(NoCommentInputStream textInput)
      Creates a parser for an Input stream. The input stream must not use any comments.
      Parameters:
      textInput -
  • Method Details

    • setBehavior

      public void setBehavior(TagValueBehavior buildDocument)
      Parameters:
      buildDocument -
    • data

      public void data() throws Exception
      parses the data
      Throws:
      Exception