|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface Position.LineMap
| Method Summary | |
|---|---|
int |
getColumnNumber(int pos)
Find the column for a character position. |
int |
getLineNumber(int pos)
Find the line containing a position; a line termination character is on the line it terminates. |
int |
getPosition(int line,
int column)
Find the position corresponding to a (line,column). |
int |
getStartPosition(int line)
Find the start position of a line. |
| Methods inherited from interface com.sun.source.tree.LineMap |
|---|
getColumnNumber, getLineNumber, getPosition, getStartPosition |
| Method Detail |
|---|
int getStartPosition(int line)
line - number of line (first is 1)
java.lang.ArrayIndexOutOfBoundsException - if lineNumber < 1
if lineNumber > no. of lines
int getPosition(int line,
int column)
line - number of line (first is 1)column - number of character on line (first is 1)
java.lang.ArrayIndexOutOfBoundsException - if line < 1
if line > no. of linesint getLineNumber(int pos)
pos - character offset of the position
int getColumnNumber(int pos)
pos - character offset of the position
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||