Class NexusFileListener.Abstract

    • Constructor Summary

      Constructors 
      Constructor Description
      Abstract()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void beginComment()
      Opening a comment tag.
      protected abstract void beginFileComment()
      This method will get called when a comment is started on the file, and not any block within it.
      protected abstract void blockEnded​(NexusBlockParser blockParser)
      This method gets called when the block parser is expected to have finished parsing a block.
      void commentText​(java.lang.String comment)
      Receiving free text inside a comment tag.
      void endBlock()
      Finished reading a block.
      void endComment()
      Closing a comment tag.
      protected abstract void endFileComment()
      This method will get called when a comment is ended on the file, and not any block within it.
      void endTokenGroup()
      Closing a line (semi-colon encountered).
      protected abstract void fileCommentText​(java.lang.String comment)
      This method will get called when comment text is found on the file, and not any block within it.
      NexusBlockParser getBlockParser​(java.lang.String blockName)
      Gets the parser to use for a given block.
      void parseToken​(java.lang.String token)
      Encountered a token.
      void setBlockParser​(java.lang.String blockName, NexusBlockParser parser)
      Sets the parser to use for a given block.
      void setDefaultBlockParsers()
      Causes the default block parsers to be assigned.
      void startBlock​(java.lang.String blockName)
      About to start a new block.
      boolean wantsBracketsAndBraces()
      Does the listener want to know about brackets and braces as separate tokens?
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait