com.android.tools.lint.detector.api
Class Position

java.lang.Object
  extended by com.android.tools.lint.detector.api.Position
Direct Known Subclasses:
DefaultPosition

@Beta
public abstract class Position
extends java.lang.Object

Information about a position in a file/document.

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
Position()
           
 
Method Summary
abstract  int getColumn()
          Returns the column number (where the first character on the line is 0), or -1 if unknown
abstract  int getLine()
          Returns the line number (0-based where the first line is line 0)
abstract  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

Position

public Position()
Method Detail

getLine

public abstract int getLine()
Returns the line number (0-based where the first line is line 0)

Returns:
the 0-based line number

getOffset

public abstract int getOffset()
The character offset

Returns:
the 0-based character offset

getColumn

public abstract int getColumn()
Returns the column number (where the first character on the line is 0), or -1 if unknown

Returns:
the 0-based column number