Package org.eclipse.jface.text.rules
Interface IWordDetector
-
public interface IWordDetectorDefines the interface by whichWordRuledetermines whether a given character is valid as part of a word in the current context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisWordPart(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 Detail
-
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
-
-