Class OBOParser

java.lang.Object
org.coode.owlapi.obo12.parser.OBOParser

public class OBOParser extends Object
  • Field Details

    • token_source

      public org.coode.owlapi.obo12.parser.OBOParserTokenManager token_source
      Generated Token Manager.
    • token

      public org.coode.owlapi.obo12.parser.Token token
      Current token.
    • jj_nt

      public org.coode.owlapi.obo12.parser.Token jj_nt
      Next token.
    • EOF

      static final int EOF
      End of File.
      See Also:
    • LINE_COMMENTED_OUT

      static final int LINE_COMMENTED_OUT
      RegularExpression Id.
      See Also:
    • OPEN_SQUARE_BRACKET

      static final int OPEN_SQUARE_BRACKET
      RegularExpression Id.
      See Also:
    • STANZA_TYPE

      static final int STANZA_TYPE
      RegularExpression Id.
      See Also:
    • CLOSE_SQUARE_BRACKET

      static final int CLOSE_SQUARE_BRACKET
      RegularExpression Id.
      See Also:
    • TAG_NAME

      static final int TAG_NAME
      RegularExpression Id.
      See Also:
    • TAG_COLON

      static final int TAG_COLON
      RegularExpression Id.
      See Also:
    • QUOTED_STRING_START

      static final int QUOTED_STRING_START
      RegularExpression Id.
      See Also:
    • QUOTED_STRING

      static final int QUOTED_STRING
      RegularExpression Id.
      See Also:
    • QUOTED_STRING_DBL_QUOTE_TERMINATOR

      static final int QUOTED_STRING_DBL_QUOTE_TERMINATOR
      RegularExpression Id.
      See Also:
    • QUOTED_STRING_NEW_LINE_TERMINATOR

      static final int QUOTED_STRING_NEW_LINE_TERMINATOR
      RegularExpression Id.
      See Also:
    • STRING

      static final int STRING
      RegularExpression Id.
      See Also:
    • TAG_VALUE_WS

      static final int TAG_VALUE_WS
      RegularExpression Id.
      See Also:
    • TAG_END

      static final int TAG_END
      RegularExpression Id.
      See Also:
    • COMMENT_START

      static final int COMMENT_START
      RegularExpression Id.
      See Also:
    • COMMENT

      static final int COMMENT
      RegularExpression Id.
      See Also:
    • COMMENT_END

      static final int COMMENT_END
      RegularExpression Id.
      See Also:
    • ERROR

      static final int ERROR
      RegularExpression Id.
      See Also:
    • DEFAULT

      static final int DEFAULT
      Lexical state.
      See Also:
    • IN_STANZA_HEADER

      static final int IN_STANZA_HEADER
      Lexical state.
      See Also:
    • IN_TAG_VALUE_PAIR

      static final int IN_TAG_VALUE_PAIR
      Lexical state.
      See Also:
    • IN_TAG_VALUE

      static final int IN_TAG_VALUE
      Lexical state.
      See Also:
    • IN_QUOTED_STRING

      static final int IN_QUOTED_STRING
      Lexical state.
      See Also:
    • IN_COMMENT

      static final int IN_COMMENT
      Lexical state.
      See Also:
    • tokenImage

      static final String[] tokenImage
      Literal token values.
  • Constructor Details

    • OBOParser

      public OBOParser(org.coode.owlapi.obo12.parser.Provider stream)
      Constructor.
    • OBOParser

      public OBOParser(String dsl) throws org.coode.owlapi.obo12.parser.ParseException, org.coode.owlapi.obo12.parser.TokenMgrException
      Constructor.
      Throws:
      org.coode.owlapi.obo12.parser.ParseException
      org.coode.owlapi.obo12.parser.TokenMgrException
    • OBOParser

      public OBOParser(org.coode.owlapi.obo12.parser.OBOParserTokenManager tm)
      Constructor with generated Token Manager.
  • Method Details

    • setHandler

      public void setHandler(OBOParserHandler handler)
    • parse

      public final void parse() throws org.coode.owlapi.obo12.parser.ParseException
      Throws:
      org.coode.owlapi.obo12.parser.ParseException
    • Header

      public final void Header() throws org.coode.owlapi.obo12.parser.ParseException
      Throws:
      org.coode.owlapi.obo12.parser.ParseException
    • Stanza

      public final void Stanza() throws org.coode.owlapi.obo12.parser.ParseException
      Throws:
      org.coode.owlapi.obo12.parser.ParseException
    • TagValuePair

      public final void TagValuePair() throws org.coode.owlapi.obo12.parser.ParseException
      Throws:
      org.coode.owlapi.obo12.parser.ParseException
    • Comment

      public final String Comment() throws org.coode.owlapi.obo12.parser.ParseException
      Throws:
      org.coode.owlapi.obo12.parser.ParseException
    • ReInit

      public void ReInit(String s)
    • ReInit

      public void ReInit(org.coode.owlapi.obo12.parser.Provider stream)
      Reinitialise.
    • ReInit

      public void ReInit(org.coode.owlapi.obo12.parser.OBOParserTokenManager tm)
      Reinitialise.
    • getNextToken

      public final org.coode.owlapi.obo12.parser.Token getNextToken()
      Get the next Token.
    • getToken

      public final org.coode.owlapi.obo12.parser.Token getToken(int index)
      Get the specific Token.
    • generateParseException

      public org.coode.owlapi.obo12.parser.ParseException generateParseException()
      Generate ParseException.
    • trace_enabled

      public final boolean trace_enabled()
      Trace enabled.
    • enable_tracing

      public final void enable_tracing()
      Enable tracing.
    • disable_tracing

      public final void disable_tracing()
      Disable tracing.