Class CRParser.UnitTagHandler

  • Enclosing class:
    CRParser

    public abstract static class CRParser.UnitTagHandler
    extends CRParser.TagHandler
    A handler that handles unit tags or blocks.
    Author:
    stm
    • Constructor Detail

      • UnitTagHandler

        public UnitTagHandler​(CRParser.BlockParser unitParser)
        Creates a new handler
        Parameters:
        unitParser - The parser calling this handler.
    • Method Detail

      • handle

        public abstract void handle​(Unit unit)
                             throws java.io.IOException
        Handle a unit tag (acces via the Scanner)
        Parameters:
        unit - The new unit object
        Throws:
        java.io.IOException - if the scanner throws an exception