org.ocleditor.internal.ui.editor
Class OclKeywordDetector

java.lang.Object
  extended byorg.ocleditor.internal.ui.editor.OclKeywordDetector
All Implemented Interfaces:
org.eclipse.jface.text.rules.IWordDetector

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

This class is used by WordRule. It determines whether a given character is valid as part of a keyword. Doesn't consider the current context.


Constructor Summary
OclKeywordDetector()
           
 
Method Summary
 boolean isWordPart(char c)
           
 boolean isWordStart(char c)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OclKeywordDetector

public OclKeywordDetector()
Method Detail

isWordStart

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

isWordPart

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