|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.uniroma3.plasm.editors.PlasmWordRule
Just like WordRule, but case insensitive.
Constructor Summary | |
PlasmWordRule(org.eclipse.jface.text.rules.IWordDetector detector)
Creates a rule which, with the help of an word detector, will return the token associated with the detected word. |
|
PlasmWordRule(org.eclipse.jface.text.rules.IWordDetector detector,
org.eclipse.jface.text.rules.IToken defaultToken)
Creates a rule which, with the help of an word detector, will return the token associated with the detected word. |
Method Summary | |
void |
addWord(java.lang.String word,
org.eclipse.jface.text.rules.IToken token)
Adds a word and the token to be returned if it is detected. |
org.eclipse.jface.text.rules.IToken |
evaluate(org.eclipse.jface.text.rules.ICharacterScanner scanner)
This method uses the PLaSM code detectors to examine any word being digitated to associate it with a particular Token object. |
void |
setColumnConstraint(int column)
Sets a column constraint for this rule. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PlasmWordRule(org.eclipse.jface.text.rules.IWordDetector detector)
detector
- the word detector to be used by this rule, may not be
null
addWord(java.lang.String, org.eclipse.jface.text.rules.IToken)
public PlasmWordRule(org.eclipse.jface.text.rules.IWordDetector detector, org.eclipse.jface.text.rules.IToken defaultToken)
detector
- the word detector to be used by this rule, may not be
null
defaultToken
- the default token to be returned on success if nothing else is
specified, may not be null
addWord(java.lang.String, org.eclipse.jface.text.rules.IToken)
Method Detail |
public void addWord(java.lang.String word, org.eclipse.jface.text.rules.IToken token)
word
- the word this rule will search for, may not be
null
token
- the token to be returned if the word has been found, may not
be null
public void setColumnConstraint(int column)
column
- the column in which the pattern startspublic org.eclipse.jface.text.rules.IToken evaluate(org.eclipse.jface.text.rules.ICharacterScanner scanner)
evaluate
in interface org.eclipse.jface.text.rules.IRule
IRule.evaluate(ICharacterScanner)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |