processAll(Lambda<Void, FindResult> findAction) Processes all occurences of the find word with the replace word in the current document or in all documents
depending the value of the machine register _searchAllDocuments.
public int
replaceAll() Replaces all occurences of the find word with the replace word in the current document of in all documents
depending the value of the machine register _searchAllDocuments.
public boolean
replaceCurrent() If we're on a match for the find word, replace it with the replace word.
Standard Constructor.
Creates new machine to perform find/replace operations on a particular document starting from a given position.
Parameters: docIterator - an object that allows navigation through open Swing documents (it is DefaultGlobalModel) exception: BadLocationException -
Determine if the machine is on an instance of the find word. Only executes in event thread except for
initialization.
true if the current position is right after an instance of the find word.
Processes all occurences of the find word with the replace word in the current document or in all documents
depending the value of the machine register _searchAllDocuments.
Parameters: findAction - action to perform on the occurrences; input is the FindResult, output is ignored the number of processed occurrences
Replaces all occurences of the find word with the replace word in the current document of in all documents
depending the value of the machine register _searchAllDocuments.
the number of replacements