|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openoffice.ide.eclipse.core.editors.syntax.RegexRule
public class RegexRule
A scanning rule matching a regular expression.
Constructor Summary | |
---|---|
RegexRule(java.lang.String pRegex,
org.eclipse.jface.text.rules.IToken pToken)
Constructor, initializing the token to return and the regex to match. |
Method Summary | |
---|---|
org.eclipse.jface.text.rules.IToken |
evaluate(org.eclipse.jface.text.rules.ICharacterScanner pScanner)
|
protected org.eclipse.jface.text.rules.IToken |
getToken()
|
protected boolean |
isEOF(int pChar)
Convenience method to determine if a character corresponds to an end of file. |
protected boolean |
isEOL(int pChar)
Convenience method to determine if a character corresponds to an end of line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegexRule(java.lang.String pRegex, org.eclipse.jface.text.rules.IToken pToken)
pRegex
- the regular expression to matchpToken
- the token to associateMethod Detail |
---|
public org.eclipse.jface.text.rules.IToken evaluate(org.eclipse.jface.text.rules.ICharacterScanner pScanner)
evaluate
in interface org.eclipse.jface.text.rules.IRule
protected org.eclipse.jface.text.rules.IToken getToken()
protected boolean isEOL(int pChar)
pChar
- the character to check
true
if the character is an end of line,
false
otherwise.protected boolean isEOF(int pChar)
pChar
- the character to check
true
if the character is an end of file,
false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |