MCPcopy Create free account
hub / github.com/apache/calcite / getPos

Method getPos

core/src/main/java/org/apache/calcite/rex/RexUtil.java:2384–2389  ·  view source on GitHub ↗

If the RexNode contains position information, return it. Otherwise, return SqlParserPos.ZERO.

(RexNode e)

Source from the content-addressed store, hash-verified

2382 /** If the RexNode contains position information, return it.
2383 * Otherwise, return SqlParserPos.ZERO. */
2384 public static SqlParserPos getPos(RexNode e) {
2385 if (e instanceof RexCall) {
2386 return ((RexCall) e).getParserPosition();
2387 }
2388 return SqlParserPos.ZERO;
2389 }
2390
2391 /** Applies NOT to an expression.
2392 *

Callers 13

isNotFalseMethod · 0.95
isNotTrueMethod · 0.95
isTrueMethod · 0.95
isFalseMethod · 0.95
simplifyIs2Method · 0.95
simplifyIsNotNullMethod · 0.95
simplifyIsNullMethod · 0.95
simplifyAnd2Method · 0.95
simplifyOrsMethod · 0.95
notMethod · 0.95

Calls 1

getParserPositionMethod · 0.45

Tested by 1

checkExMethod · 0.36