private static <T> T checkNode(ParseTree node, Class<T> clazz) {
if (node instanceof ErrorNode) {
throw new IndexRQLParseError(node.getText());
} else if (node instanceof TerminalNode) {
return null;
} else if (clazz.isInstance(node)) {
return (T) node;
}
return null;
}
IndexRQL.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:indexr
作者:
评论列表
文章目录