it.uniroma3.plasm.editors.util
Class PlasmWordDetector

java.lang.Object
  extended byit.uniroma3.plasm.editors.util.PlasmWordDetector
All Implemented Interfaces:
org.eclipse.jface.text.rules.IWordDetector

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

A PLaSM word detector for common words.

Author:
EcT(o)PLaSM Group

Constructor Summary
PlasmWordDetector()
           
 
Method Summary
 boolean isWordPart(char c)
          Checks if the given character c is a valid PLaSM internal word character
 boolean isWordStart(char c)
          Checks if a character is a valid PLaSM word initial character.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlasmWordDetector

public PlasmWordDetector()
Method Detail

isWordStart

public boolean isWordStart(char c)
Checks if a character is a valid PLaSM word initial character.

Specified by:
isWordStart in interface org.eclipse.jface.text.rules.IWordDetector
Parameters:
c - the character to examine
Returns:
true if c is in the admittedCharacters array or is a letter, false otherwise
See Also:
IWordDetector.isWordStart(char)

isWordPart

public boolean isWordPart(char c)
Checks if the given character c is a valid PLaSM internal word character

Specified by:
isWordPart in interface org.eclipse.jface.text.rules.IWordDetector
Parameters:
c - the character to check
Returns:
true if c is an alphanumeric character or is in the admittedCharacters array
See Also:
IWordDetector.isWordPart(char)