Interface JavaCodeScanner.Visitor

Enclosing class:
JavaCodeScanner
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 JavaCodeScanner.Visitor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    visit(int index, char c, JavaCodeScanner.Region region)
    Called for every character of the scanned code, in order.
  • Method Details

    • visit

      boolean visit(int index, char c, JavaCodeScanner.Region region)
      Called for every character of the scanned code, in order.
      Parameters:
      index - The index of the character in the scanned code
      c - The character at the given index
      region - The region the character belongs to
      Returns:
      true to continue scanning, false to abort the scan