com.android.utils
Interface PositionXmlParser.Position

All Known Implementing Classes:
PositionXmlParser.DefaultPosition
Enclosing class:
PositionXmlParser

protected static interface PositionXmlParser.Position


Method Summary
 int getColumn()
           
 PositionXmlParser.Position getEnd()
          Linked position: for a begin position this will point to the corresponding end position.
 int getLine()
           
 int getOffset()
           
 void setEnd(PositionXmlParser.Position end)
          Linked position: for a begin position this will point to the corresponding end position.
 

Method Detail

getEnd

@Nullable
PositionXmlParser.Position getEnd()
Linked position: for a begin position this will point to the corresponding end position. For an end position this will be null.

Returns:
the end position, or null

setEnd

void setEnd(@NonNull
            PositionXmlParser.Position end)
Linked position: for a begin position this will point to the corresponding end position. For an end position this will be null.

Parameters:
end - the end position

getLine

int getLine()
Returns:
the line number, 0-based

getOffset

int getOffset()
Returns:
the offset number, 0-based

getColumn

int getColumn()
Returns:
the column number, 0-based, and -1 if the column number if not known