net.sourceforge.jeuclid.biparser
Class TextPosition

java.lang.Object
  extended by net.sourceforge.jeuclid.biparser.TextPosition

public class TextPosition
extends Object

Tree search result (used for the cursor).

Version:
$Revision: cbff5bfffc35 $

Constructor Summary
TextPosition(int offset, int len)
          standard constructor.
 
Method Summary
 int getLength()
          gets length.
 int getTotalOffset()
          gets total offset.
 void setLength(int len)
          sets length.
 void setTotalOffset(int offset)
          sets total offset.
 String toString()
          gets search result's string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextPosition

public TextPosition(int offset,
                    int len)
standard constructor.

Parameters:
offset - total position index
len - node length
Method Detail

getTotalOffset

public final int getTotalOffset()
gets total offset.

Returns:
the totalOffset

setTotalOffset

public final void setTotalOffset(int offset)
sets total offset.

Parameters:
offset - the totalOffset to set

getLength

public final int getLength()
gets length.

Returns:
the length

setLength

public final void setLength(int len)
sets length.

Parameters:
len - the length to set

toString

public final String toString()
gets search result's string representation.

Overrides:
toString in class Object
Returns:
string representation


Copyright © 2002-2010 The JEuclid project. All Rights Reserved.