Eclipse Platform
Release 3.1

org.eclipse.jface.text.rules
Interface IWordDetector


public interface IWordDetector

Defines the interface by which WordRule determines whether a given character is valid as part of a word in the current context.


Method Summary
 boolean isWordPart(char c)
          Returns whether the specified character is valid as a subsequent character in a word.
 boolean isWordStart(char c)
          Returns whether the specified character is valid as the first character in a word.
 

Method Detail

isWordStart

public boolean isWordStart(char c)
Returns whether the specified character is valid as the first character in a word.

Parameters:
c - the character to be checked
Returns:
true is a valid first character in a word, false otherwise

isWordPart

public boolean isWordPart(char c)
Returns whether the specified character is valid as a subsequent character in a word.

Parameters:
c - the character to be checked
Returns:
true if the character is a valid word part, false otherwise

Eclipse Platform
Release 3.1

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.