Interface PrefixHandler

  • All Superinterfaces:
    Serializable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface PrefixHandler
    extends Serializable
    Handler for prefix expressions.
    Author:
    David B. Bracewell
    • Method Detail

      • handle

        Expression handle​(Parser parser,
                          ParserToken token)
                   throws ParseException
        Handles the given prefix token using the given parser
        Parameters:
        parser - the parser to use
        token - the token representing the prefix operator
        Returns:
        the expression resulting the handler
        Throws:
        ParseException - Something went wrong parsing the expression.