net.jakubholy.jedit.autocomplete
Interface WordTypedListener.Filter
- Enclosing class:
- WordTypedListener
public static interface WordTypedListener.Filter
Decides what belongs to a word and what doesn't, i.e. it distinguishes
word separators and word elements. Modify it to change what is considered
to be a part of a word.
Method Summary |
boolean |
accept(java.lang.StringBuffer word,
char insertion)
Decide whether the character can be appended to the word or whether
it ends it. |
accept
boolean accept(java.lang.StringBuffer word,
char insertion)
- Decide whether the character can be appended to the word or whether
it ends it.
- Parameters:
word
- The word typed so far, may be empty but not null.insertion
- The character typed at the end of the word
- Returns:
- Return true if the insertion does not end the word i.e. if it
is not the first non-word character.