Interface NodePredicate


public interface NodePredicate
A predicate on AST nodes, i.e., a function which given an ASTNode, returns either true or false.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    holds(ASTNode node)
    Applies this predicate to the given node.
  • Method Details

    • holds

      boolean holds(ASTNode node)
      Applies this predicate to the given node.
      Parameters:
      node - any AST node
      Returns:
      true if this predicate hold at the node, false otherwise