Class ControlRule

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init​(Jep jep)
      Delayed initialisation, this methods is called whenever components of the jep instance are changed.
      Node match​(Lookahead2Iterator<Token> it, GrammarParser parser)
      Attempt to parse the input using the rule
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ControlRule

        public ControlRule​(SymbolToken word,
                           SymbolToken separator,
                           java.lang.Object code)
        Constructor.
        Parameters:
        word - token representing "break" or "continue"
        separator - separator at end of
        code - the control code to return
    • Method Detail

      • init

        public void init​(Jep jep)
        Description copied from interface: GrammarMatcher
        Delayed initialisation, this methods is called whenever components of the jep instance are changed.
        Specified by:
        init in interface GrammarMatcher
        Parameters:
        jep - the current jep instance.