本文整理了Java中org.antlr.v4.runtime.misc.NotNull.<init>()
方法的一些代码示例,展示了NotNull.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。NotNull.<init>()
方法的具体详情如下:
包路径:org.antlr.v4.runtime.misc.NotNull
类名称:NotNull
方法名:<init>
暂无
代码示例来源:origin: apache/hive
/**
* INCLUDE statement
*/
@Override
public Integer visitInclude_stmt(@NotNull HplsqlParser.Include_stmtContext ctx) {
return exec.stmt.include(ctx);
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void exitComparisonPredicate(@NotNull PQL2Parser.ComparisonPredicateContext ctx) {
popNode();
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void exitFloatingPointLiteral(@NotNull PQL2Parser.FloatingPointLiteralContext ctx) {
popNode();
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void exitLimit(@NotNull PQL2Parser.LimitContext ctx) {
popNode();
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void exitOrderByExpression(@NotNull PQL2Parser.OrderByExpressionContext ctx) {
popNode();
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void exitBooleanOperator(@NotNull PQL2Parser.BooleanOperatorContext ctx) {
popNode();
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void exitStarExpression(@NotNull PQL2Parser.StarExpressionContext ctx) {
popNode();
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void exitHaving(@NotNull PQL2Parser.HavingContext ctx) {
popNode();
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void enterSelect(@NotNull PQL2Parser.SelectContext ctx) {
pushNode(new SelectAstNode());
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void enterStarExpression(@NotNull PQL2Parser.StarExpressionContext ctx) {
pushNode(new StarExpressionAstNode());
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void enterRegexpLikePredicate(@NotNull PQL2Parser.RegexpLikePredicateContext ctx) {
pushNode(new RegexpLikePredicateAstNode());
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void enterPredicateParenthesisGroup(@NotNull PQL2Parser.PredicateParenthesisGroupContext ctx) {
pushNode(new PredicateParenthesisGroupAstNode());
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void enterWhere(@NotNull PQL2Parser.WhereContext ctx) {
pushNode(new WhereAstNode());
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void enterPredicateList(@NotNull PQL2Parser.PredicateListContext ctx) {
pushNode(new PredicateListAstNode());
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void enterIntegerLiteral(@NotNull PQL2Parser.IntegerLiteralContext ctx) {
pushNode(new IntegerLiteralAstNode(Long.parseLong(ctx.getText())));
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void enterTableName(@NotNull PQL2Parser.TableNameContext ctx) {
pushNode(new TableNameAstNode(ctx.getText()));
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void enterInPredicate(@NotNull PQL2Parser.InPredicateContext ctx) {
boolean isNotInClause = false;
if ("not".equalsIgnoreCase(ctx.getChild(0).getChild(1).getText())) {
isNotInClause = true;
}
pushNode(new InPredicateAstNode(isNotInClause));
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void enterFunctionCall(@NotNull PQL2Parser.FunctionCallContext ctx) {
String expression = _expression.substring(ctx.getStart().getStartIndex(), ctx.getStop().getStopIndex() + 1);
pushNode(new FunctionCallAstNode(ctx.getChild(0).getText(), expression));
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void enterLimit(@NotNull PQL2Parser.LimitContext ctx) {
// Can either be LIMIT <maxRows> or LIMIT <offset>, <maxRows> (the second is a MySQL syntax extension)
if (ctx.getChild(0).getChildCount() == 2) {
pushNode(new LimitAstNode(Integer.parseInt(ctx.getChild(0).getChild(1).getText())));
} else {
pushNode(new LimitAstNode(Integer.parseInt(ctx.getChild(0).getChild(3).getText()),
Integer.parseInt(ctx.getChild(0).getChild(1).getText())));
}
}
代码示例来源:origin: apache/incubator-pinot
@Override
public void enterOrderByExpression(@NotNull PQL2Parser.OrderByExpressionContext ctx) {
if (ctx.getChildCount() == 1) {
pushNode(new OrderByExpressionAstNode(ctx.getChild(0).getText(), "asc"));
} else {
pushNode(new OrderByExpressionAstNode(ctx.getChild(0).getText(), ctx.getChild(1).getText()));
}
}
内容来源于网络,如有侵权,请联系作者删除!