public class SqlParserPos extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static SqlParserPos |
ZERO
SqlParserPos representing line one, character one.
|
| Constructor and Description |
|---|
SqlParserPos(int lineNumber,
int columnNumber)
Creates a new parser position.
|
SqlParserPos(int startLineNumber,
int startColumnNumber,
int endLineNumber,
int endColumnNumber)
Creates a new parser range.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getColumnNum() |
int |
getEndColumnNum() |
int |
getEndLineNum() |
int |
getLineNum() |
int |
hashCode() |
boolean |
overlaps(SqlParserPos pos) |
SqlParserPos |
plus(SqlParserPos pos)
Combines this parser position with another to create a
position that spans from the first point in the first to the last point
in the other.
|
SqlParserPos |
plusAll(Collection<SqlNode> nodeList)
Combines this parser position with a list of positions.
|
SqlParserPos |
plusAll(SqlNode[] nodes)
Combines this parser position with an array of positions to create a
position that spans from the first point in the first to the last point
in the other.
|
boolean |
startsAt(SqlParserPos pos) |
static SqlParserPos |
sum(Iterable<SqlParserPos> poses)
Combines an array of parser positions to create a position which spans
from the beginning of the first to the end of the last.
|
static SqlParserPos |
sum(List<? extends SqlNode> nodes)
Combines the parser positions of a list of nodes to create a position
which spans from the beginning of the first to the end of the last.
|
static SqlParserPos |
sum(SqlNode[] 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.
|
String |
toString() |
public static final SqlParserPos ZERO
public SqlParserPos(int lineNumber,
int columnNumber)
public SqlParserPos(int startLineNumber,
int startColumnNumber,
int endLineNumber,
int endColumnNumber)
public int getLineNum()
public int getColumnNum()
public int getEndLineNum()
public int getEndColumnNum()
public SqlParserPos plus(SqlParserPos pos)
public SqlParserPos plusAll(SqlNode[] nodes)
public SqlParserPos plusAll(Collection<SqlNode> nodeList)
public static SqlParserPos sum(SqlNode[] nodes)
public static SqlParserPos sum(List<? extends SqlNode> nodes)
public static SqlParserPos sum(Iterable<SqlParserPos> poses)
public boolean overlaps(SqlParserPos pos)
public boolean startsAt(SqlParserPos pos)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.