se.biltmore.tools.fileeditor
Class Occurence

java.lang.Object
  extended by se.biltmore.tools.fileeditor.Occurence

public class Occurence
extends Object

This represents an occurence hit in the editor buffer.


Constructor Summary
Occurence(Position position, TextBuffer buffer)
          Creates a new instance of Occurence.
 
Method Summary
 String getLineText()
          Returns the lines text.
 Position getPosition()
          Returns the line number represented by this Occurence.
 void setLineText(String text)
          Updates the lines text.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Occurence

public Occurence(Position position,
                 TextBuffer buffer)
Creates a new instance of Occurence.

Parameters:
position - The position of this occurence
buffer - The text buffer this line belongs to.
Method Detail

getPosition

public Position getPosition()
Returns the line number represented by this Occurence.


getLineText

public String getLineText()
Returns the lines text.


setLineText

public void setLineText(String text)
Updates the lines text.

Parameters:
text - The text to set.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2010 Biltmore Group AB. All Rights Reserved.