PatternMatching.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:SwiftAnalyzer 作者:
/**
 * Searches for all possible subtrees and applies pattern matching on each subtree.
 *
 * @param pattern the parse tree pattern, refer to https://github.com/antlr/antlr4/blob/master/doc/faq/parse-trees.md
 * @param rule the production rule in the parser that the pattern adheres to
 * @return a list of matches
 */
public List<ParseTreeMatch> match(String pattern, int rule) {
    return match(pattern, rule, "//*");
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号