Package net.sf.xslthl
Class Highlighter
java.lang.Object
net.sf.xslthl.Highlighter
- Direct Known Subclasses:
AnnotationHighlighter
,HeredocHighlighter
,KeywordsHighlighter
,MultilineCommentHighlighter
,NumberHighlighter
,OnelineCommentHighlighter
,RegexHighlighterEx
,StringHighlighter
,WholeHighlighter
,WordHighlighter
Base highlighter. Accepted parameters:
- Style
- The style to use in the generated block. Must be a valid XML name.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
The default style nameabstract boolean
Perform highlighting on the current token stream.void
Initializerstatic final boolean
void
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 highlighter
-
Field Details
-
XMLname
validates a valid XML name (note: ':' is not allowed) http://www.w3.org/TR/2000/REC-xml-20001006#NT-Letter
-
-
Constructor Details
-
Highlighter
public Highlighter()
-
-
Method Details
-
isNewLine
-
init
Initializer- Parameters:
params
-- Throws:
HighlighterConfigurationException
-
startsWith
return true if the current character is a possible match for this highlighter- Parameters:
in
-- Returns:
-
highlight
Perform highlighting on the current token stream. Return true when highlighting was performed, or false in case of a false positive.- Parameters:
in
-out
-- Returns:
-
getDefaultStyle
The default style name- Returns:
-
reset
public void reset()Reset this highlighter to it's initially configured state
-