Class Heuristics.OfKind

All Implemented Interfaces:
TreeVisitor<Boolean,Void>
Enclosing class:
Heuristics

public static class Heuristics.OfKind extends Heuristics.Matcher
match() returns true if called on a path whose leaf has the given kind (supplied at object initialization).
  • Constructor Details

  • Method Details

    • match

      public boolean match(TreePath path)
      Description copied from class: Heuristics.Matcher
      Returns true if the given path matches this Matcher.
      Overrides:
      match in class Heuristics.Matcher
      Parameters:
      path - the path to test
      Returns:
      true if the given path matches this Matcher