|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.tools.lint.detector.api.Position com.android.tools.lint.detector.api.DefaultPosition
@Beta public class DefaultPosition
A simple offset-based position *
NOTE: This is not a public or final API; if you rely on this be prepared to adjust your code for the next tools release.
Constructor Summary | |
---|---|
DefaultPosition(int line,
int column,
int offset)
Creates a new DefaultPosition |
Method Summary | |
---|---|
int |
getColumn()
Returns the column number (where the first character on the line is 0), or -1 if unknown |
int |
getLine()
Returns the line number (0-based where the first line is line 0) |
int |
getOffset()
The character offset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultPosition(int line, int column, int offset)
DefaultPosition
line
- the 0-based line number, or -1 if unknowncolumn
- the 0-based column number, or -1 if unknownoffset
- the offset, or -1 if unknownMethod Detail |
---|
public int getLine()
Position
getLine
in class Position
public int getOffset()
Position
getOffset
in class Position
public int getColumn()
Position
getColumn
in class Position
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |