| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.sql.parser.SqlParserPos
public class SqlParserPos
SqlParserPos represents the position of a parsed token within SQL statement text.
| Field Summary | |
|---|---|
| private  int | columnNumber | 
| private  int | endColumnNumber | 
| private  int | endLineNumber | 
| private  int | lineNumber | 
| private static long | serialVersionUID | 
| static SqlParserPos | ZEROSqlParserPos representing line one, character one. | 
| Constructor Summary | |
|---|---|
| SqlParserPos(int lineNumber,
             int columnNumber)Creates a new parser position. | |
| SqlParserPos(int startLineNumber,
             int startColumnNumber,
             int endLineNumber,
             int endColumnNumber)Creates a new parser range. | |
| Method Summary | |
|---|---|
|  boolean | equals(Object obj) | 
|  int | getColumnNum() | 
|  int | getEndColumnNum() | 
|  int | getEndLineNum() | 
|  int | getLineNum() | 
|  int | hashCode() | 
|  SqlParserPos | plus(SqlParserPos pos)Combines this parser position with another to create a position which 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 which spans from the first point in the first to the last point in the other. | 
| static SqlParserPos | sum(List<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. | 
| private static SqlParserPos | sum(SqlNode[] nodes,
    int line,
    int column,
    int endLine,
    int endColumn)Computes the parser position which is the sum of the positions of an array of parse tree nodes and of a parser position represented by (line, column, endLine, endColumn). | 
| static SqlParserPos | sum(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. | 
| private static SqlParserPos | sum(SqlParserPos[] poses,
    int line,
    int column,
    int endLine,
    int endColumn)Computes the parser position which is the sum of an array of parser positions and of a parser position represented by (line, column, endLine, endColumn). | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final SqlParserPos ZERO
private static final long serialVersionUID
private final int lineNumber
private final int columnNumber
private final int endLineNumber
private final int endColumnNumber
| Constructor Detail | 
|---|
public SqlParserPos(int lineNumber,
                    int columnNumber)
public SqlParserPos(int startLineNumber,
                    int startColumnNumber,
                    int endLineNumber,
                    int endColumnNumber)
| Method Detail | 
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int getLineNum()
public int getColumnNum()
public int getEndLineNum()
public int getEndColumnNum()
public String toString()
toString in class Objectpublic 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<SqlNode> nodes)
private static SqlParserPos sum(SqlNode[] nodes,
                                int line,
                                int column,
                                int endLine,
                                int endColumn)
nodes - Array of parse tree nodesline - Start linecolumn - Start columnendLine - End lineendColumn - End column
public static SqlParserPos sum(SqlParserPos[] poses)
private static SqlParserPos sum(SqlParserPos[] poses,
                                int line,
                                int column,
                                int endLine,
                                int endColumn)
poses - Array of parser positionsline - Start linecolumn - Start columnendLine - End lineendColumn - End column
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||