public interface Locator
Modifier and Type | Method and Description |
---|---|
int |
getDocumentOffset()
get the 0-based character offset of the current character from the start of the document.
|
int |
getLineCharacterOffset()
get the 0-based offset of the current character in the current line
|
int |
getLineDocumentOffset()
get the 0-based character offset of the current line from the start of the document
|
int |
getLineLength()
get the length of the current line in characters, not including the line terminator
|
int |
getLineNumber()
get the 1-based number of the current line.
|
int |
getLineSegmentEndOffset()
Get the 0-based offset of the end of the current line segment being processed, exclusive.
|
int getLineNumber()
int getLineDocumentOffset()
int getDocumentOffset()
getLineDocumentOffset()+getLineCharacterOffset()
int getLineLength()
int getLineCharacterOffset()
int getLineSegmentEndOffset()
getLineCharacterOffset()
and ends on the character preceding this offset,
[s,e)
where s is the start and e is the end.Copyright © 2007, 2013 David Green and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html