org.eclipse.datatools.sqltools.sqleditor.internal.utils
Class SQLWordDetector

java.lang.Object
  extended by org.eclipse.datatools.sqltools.sqleditor.internal.utils.SQLWordDetector
All Implemented Interfaces:
org.eclipse.jface.text.rules.IWordDetector

public class SQLWordDetector
extends java.lang.Object
implements org.eclipse.jface.text.rules.IWordDetector

This class determines whether a given character is valid as part of an SQL keyword in the current context.


Constructor Summary
SQLWordDetector()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLWordDetector

public SQLWordDetector()
Method Detail

isWordStart

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

Specified by:
isWordStart in interface org.eclipse.jface.text.rules.IWordDetector
See Also:
IWordDetector.isWordStart(char)

isWordPart

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

Specified by:
isWordPart in interface org.eclipse.jface.text.rules.IWordDetector
See Also:
IWordDetector.isWordPart(char)