站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

WordDelineator (Terminal Emulator) - NetBeans API Javadoc (Current Development Version)

org.netbeans.lib.terminalemulator 1.2

org.netbeans.lib.terminalemulator
Class WordDelineator

java.lang.Object
  extended by org.netbeans.lib.terminalemulator.WordDelineator

public class WordDelineator
extends Object


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

WordDelineator

public WordDelineator()
Method Detail

charClass

protected int charClass(char c)
Return the character equivalence class of '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.


findLeft

protected int findLeft(StringBuffer buf,
                       int start)
Return index of char at the beginning of the word.


findRight

protected int findRight(StringBuffer buf,
                        int start)
Return index of char past the word.


org.netbeans.lib.terminalemulator 1.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.