/** * Combines the parser positions of an array of nodes to create a position * which spans from the beginning of the first to the end of the last. */ public static SqlParserPos sum(final SqlNode[] nodes) { return sum(toPos(nodes)); }
/** * Combines the parser positions of an array of nodes to create a position * which spans from the beginning of the first to the end of the last. */ public static SqlParserPos sum(final SqlNode[] nodes) { return sum(toPos(nodes)); }
/** * Combines this parser position with a list of positions. */ public SqlParserPos plusAll(Collection<SqlNode> nodeList) { int line = getLineNum(); int column = getColumnNum(); int endLine = getEndLineNum(); int endColumn = getEndColumnNum(); return sum(toPos(nodeList), line, column, endLine, endColumn); }
/** * Combines this parser position with a list of positions. */ public SqlParserPos plusAll(Collection<SqlNode> nodeList) { int line = getLineNum(); int column = getColumnNum(); int endLine = getEndLineNum(); int endColumn = getEndColumnNum(); return sum(toPos(nodeList), line, column, endLine, endColumn); }