Class MultiLineToken

    • Method Detail

      • match

        public Token match​(java.lang.String line)
                    throws ParseException
        Matches the end of the token.
        Specified by:
        match in interface TokenMatcher
        Parameters:
        line - the next line of input
        Returns:
        token representing part of the current line matched, or null if the end of the token is not found.
        Throws:
        ParseException - on syntax error
      • append

        public void append​(java.lang.String line)
      • getCompleteToken

        public Token getCompleteToken()
        A token representing the complete matched input.
        Returns:
        the complete token
      • init

        public void init​(Jep j)
        Description copied from interface: TokenMatcher
        Initialize the matcher when the Jep instance is known.
        Specified by:
        init in interface TokenMatcher
        Parameters:
        j - Jep instance