|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.xslthl.Highlighter
net.sf.xslthl.highlighters.KeywordsHighlighter
public class KeywordsHighlighter
Scans for registered keywords Accepted parameters:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sf.xslthl.Highlighter |
---|
Highlighter.IgnoreCaseComparator |
Field Summary | |
---|---|
protected boolean |
exclusiveChars
If true, then startChars and partChars are the only characters accepted for the identifiers |
protected boolean |
ignoreCase
Ignore case of the keywords. |
protected Collection<String> |
keywords
the keywords this highligher accepts |
protected String |
partChars
Optional extra character sequence that defines the part of an identifier |
protected String |
startChars
Optional extra character sequence that defines the start of an identifier |
Fields inherited from class net.sf.xslthl.Highlighter |
---|
styleName, XMLname |
Constructor Summary | |
---|---|
KeywordsHighlighter()
|
Method Summary | |
---|---|
protected void |
appendUnique(StringBuilder buf,
char ch)
|
String |
getDefaultStyle()
The default style name |
boolean |
highlight(CharIter in,
List<Block> out)
Perform highlighting on the current token stream. |
void |
init(Params params)
Initializer |
protected boolean |
isIdentifierPart(char ch)
|
protected boolean |
isIdentifierStart(char ch)
|
boolean |
startsWith(CharIter in)
return true if the current character is a possible match for this highlighter |
Methods inherited from class net.sf.xslthl.Highlighter |
---|
isNewLine, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Collection<String> keywords
protected boolean ignoreCase
protected String startChars
protected String partChars
protected boolean exclusiveChars
Constructor Detail |
---|
public KeywordsHighlighter()
Method Detail |
---|
public void init(Params params) throws HighlighterConfigurationException
Highlighter
init
in class Highlighter
HighlighterConfigurationException
protected void appendUnique(StringBuilder buf, char ch)
public boolean startsWith(CharIter in)
Highlighter
startsWith
in class Highlighter
public boolean highlight(CharIter in, List<Block> out)
Highlighter
highlight
in class Highlighter
public String getDefaultStyle()
Highlighter
getDefaultStyle
in class Highlighter
protected boolean isIdentifierStart(char ch)
ch
-
protected boolean isIdentifierPart(char ch)
ch
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |