Package 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.
Originally since unknown version, but moved to org.eclipse.text in 3.14- Since:
- 3.14
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisWordPart(char c) Returns whether the specified character is valid as a subsequent character in a word.booleanisWordStart(char c) Returns whether the specified character is valid as the first character in a word.
-
Method Details
-
isWordStart
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:
trueis a valid first character in a word,falseotherwise
-
isWordPart
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:
trueif the character is a valid word part,falseotherwise
-