Interface Symbol.TokenFunction<R,​C>

Type Parameters:
C - the type of context that is used to compute the function
R - the result type of the function
All Known Subinterfaces:
Symbol.Function<R,​C>
Enclosing class:
Symbol
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 static interface Symbol.TokenFunction<R,​C>
A function that can be executed on a TokenSymbol
  • Method Summary

    Modifier and Type Method Description
    R apply​(C context, TokenSymbol s)
    Implements the function
  • Method Details

    • apply

      R apply​(C context, TokenSymbol s)
      Implements the function
      Parameters:
      context - the context used to compute the function result
      s - the input TokenSymbol for the function
      Returns:
      the result of the function