Interface PieceSupplier

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 PieceSupplier
Function that converts a character into a matching piece.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(char c, FilePointer ptr)
    Apply function to character at a position.
  • Method Details

    • apply

      ExpressionPiece apply(char c, FilePointer ptr)
      Apply function to character at a position.
      Parameters:
      c - Character to get piece for.
      ptr - Character position in file.
      Returns:
      Created piece or null to cancel.