|
org.netbeans.lib.terminalemulator 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.lib.terminalemulator.WordDelineator
public class WordDelineator
Constructor Summary | |
---|---|
WordDelineator()
|
Method Summary | |
---|---|
protected int |
charClass(char c)
Return the character equivalence class of 'c'. |
protected int |
findLeft(StringBuffer buf,
int start)
Return index of char at the beginning of the word. |
protected int |
findRight(StringBuffer buf,
int start)
Return index of char past the word. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WordDelineator()
Method Detail |
---|
protected int charClass(char c)
This is used by findLeft() and findRight() which operate such that a word is bounded by a change in character class.
A character equivalence class is characterised by a number, any number, that is different from numbers for other character classes. For example, this implementation, which is used as the default WordDelineator for Term returns 1 for spaces and 0 for everything else.
protected int findLeft(StringBuffer buf, int start)
protected int findRight(StringBuffer buf, int start)
|
org.netbeans.lib.terminalemulator 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |