match method

ParseTreeMatch match(
  1. ParseTree tree
)

Match a specific parse tree against this tree pattern.

@param tree The parse tree to match against this tree pattern. @return A ParseTreeMatch object describing the result of the match operation. The {@link ParseTreeMatch#succeeded()} method can be used to determine whether or not the match was successful.

Implementation

ParseTreeMatch match(ParseTree tree) {
  return matcher.match(tree, pattern: this);
}