Package net.sf.xslthl.highlighters
Class RegexHighlighterEx
java.lang.Object
net.sf.xslthl.Highlighter
net.sf.xslthl.highlighters.RegexHighlighterEx
Regular expression highlighter. Accepted parameters:
- pattern
- The regular expression pattern to be matched.
- flags
- Flags, see javadoc (use the constant names AS IS)
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.xslthl.Highlighter
Highlighter.IgnoreCaseComparator
-
Field Summary
Fields inherited from class net.sf.xslthl.Highlighter
XMLname
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe default style nameboolean
Perform highlighting on the current token stream.void
Initializervoid
reset()
Reset this highlighter to it's initially configured stateboolean
startsWith
(CharIter in) return true if the current character is a possible match for this highlighterMethods inherited from class net.sf.xslthl.Highlighter
isNewLine
-
Constructor Details
-
RegexHighlighterEx
public RegexHighlighterEx()
-
-
Method Details
-
init
Description copied from class:Highlighter
Initializer- Overrides:
init
in classHighlighter
- Parameters:
params
-- Throws:
HighlighterConfigurationException
-
getDefaultStyle
Description copied from class:Highlighter
The default style name- Specified by:
getDefaultStyle
in classHighlighter
- Returns:
-
reset
public void reset()Description copied from class:Highlighter
Reset this highlighter to it's initially configured state- Overrides:
reset
in classHighlighter
-
startsWith
Description copied from class:Highlighter
return true if the current character is a possible match for this highlighter- Overrides:
startsWith
in classHighlighter
- Parameters:
in
-- Returns:
-
highlight
Description copied from class:Highlighter
Perform highlighting on the current token stream. Return true when highlighting was performed, or false in case of a false positive.- Specified by:
highlight
in classHighlighter
- Parameters:
in
-out
-- Returns:
-