org.ashikunep.irenka.dom.source
インタフェース LocationManager


public interface LocationManager

Line number and column number manager for Compilation Unit.

バージョン:
$Date: 2008-02-12 12:35:47 +0900 (火, 12 2月 2008) $
作成者:
Suguru ARAKAWA (Gluegent, Inc.)

メソッドの概要
 int getColumnNumber(int position)
          Returns the column number corresponding to the given source character position in the original source string.
 int getLineNumber(int position)
          Returns the line number corresponding to the given source character position in the original source string.
 

メソッドの詳細

getLineNumber

int getLineNumber(int position)
Returns the line number corresponding to the given source character position in the original source string. The initial line of the compilation unit is numbered 1, and each line extends through the last character of the end-of-line delimiter.

パラメータ:
position - a character position
戻り値:
line number, or -1 if the given character position was out of range

getColumnNumber

int getColumnNumber(int position)
Returns the column number corresponding to the given source character position in the original source string. The initial column of the line is numbered 0.

パラメータ:
position - a character position
戻り値:
column number, or -1 if the given character position was out of range


Copyright 2007 the Seasar Foundation and the Others.