org.eigenbase.xom
Interface Location


public interface Location

Represents the location of a node within its document.

Location is a span from a starting line and column to an ending line and column; or alternatively, from a starting character position to an ending character position.

Since:
Jun 6, 2008
Author:
jhyde
 

Method Summary
 int getEndColumn()
          Returns the column where this node ends.
 int getEndLine()
          Returns the line where this node ends.
 int getEndPos()
          Returns the character position where this node ends.
 int getStartColumn()
          Returns the column where this node starts.
 int getStartLine()
          Returns the line where this node starts.
 int getStartPos()
          Returns the character position where this node starts.
 

Method Detail

getStartLine

int getStartLine()
Returns the line where this node starts. The first line in the document is 1.

Returns:
Line of the start of this node

getStartColumn

int getStartColumn()
Returns the column where this node starts. The first column in the document is 1.

Returns:
column of the start of this node

getStartPos

int getStartPos()
Returns the character position where this node starts. The first character in the document is 0.

Returns:
Character position of the start of this node

getEndLine

int getEndLine()
Returns the line where this node ends. The first line in the document is 1.

Returns:
Line of the end of this node

getEndColumn

int getEndColumn()
Returns the column where this node ends. The first column in the document is 1.

Returns:
column of the end of this node

getEndPos

int getEndPos()
Returns the character position where this node ends. The first character in the document is 0.

Returns:
Character position of the end of this node

SourceForge.net_Logo