|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.cs.drjava.model.FindResult
public class FindResult
Returned to FindMachineDialog with the location of the found string (or -1 if the string was not found) as well as a flag indicating whether the machine wrapped around the end of the document.
Constructor Summary | |
---|---|
FindResult(OpenDefinitionsDocument document,
int foundoffset,
boolean wrapped,
boolean allWrapped)
Constructor for a FindResult. |
Method Summary | |
---|---|
boolean |
getAllWrapped()
Returns true if the search wrapped to the start document. |
OpenDefinitionsDocument |
getDocument()
Returns the document where the found instance is located |
int |
getFoundOffset()
Returns the offset of the instance found |
boolean |
getWrapped()
Returns true if the search wrapped to the beginning (or end) of the document |
String |
toString()
Intelligible toString method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FindResult(OpenDefinitionsDocument document, int foundoffset, boolean wrapped, boolean allWrapped)
document
- the document where the found instance is locatedfoundoffset
- the offset of the instance foundwrapped
- true
if the search wrapped to the beginning (or end) of the documentallWrapped
- true
if the search wrapped to the start documentMethod Detail |
---|
public String toString()
toString
in class Object
public OpenDefinitionsDocument getDocument()
public int getFoundOffset()
public boolean getWrapped()
public boolean getAllWrapped()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |