|
||||||||||
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.RegexHighlighterEx
public class RegexHighlighterEx
Regular expression highlighter. Accepted parameters:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sf.xslthl.Highlighter |
---|
Highlighter.IgnoreCaseComparator |
Field Summary | |
---|---|
protected boolean |
finished
If true this matcher is done |
protected Matcher |
matcher
Matcher used to find locations |
protected Pattern |
pattern
|
Fields inherited from class net.sf.xslthl.Highlighter |
---|
styleName, XMLname |
Constructor Summary | |
---|---|
RegexHighlighterEx()
|
Method Summary | |
---|---|
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 |
void |
reset()
Reset this highlighter to it's initially configured state |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Pattern pattern
protected Matcher matcher
protected boolean finished
Constructor Detail |
---|
public RegexHighlighterEx()
Method Detail |
---|
public void init(Params params) throws HighlighterConfigurationException
Highlighter
init
in class Highlighter
HighlighterConfigurationException
public String getDefaultStyle()
Highlighter
getDefaultStyle
in class Highlighter
public void reset()
Highlighter
reset
in class Highlighter
public boolean startsWith(CharIter in)
Highlighter
startsWith
in class Highlighter
public boolean highlight(CharIter in, List<Block> out)
Highlighter
highlight
in class Highlighter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |