Package net.sf.xslthl.highlighters
Class MultilineCommentHighlighter
- java.lang.Object
-
- net.sf.xslthl.Highlighter
-
- net.sf.xslthl.highlighters.MultilineCommentHighlighter
-
- Direct Known Subclasses:
NestedMultilineCommentHighlighter
public class MultilineCommentHighlighter extends Highlighter
Performs highlighting for multi-line comments Accepted parameters:- start
- How the multiline comment starts. Required.
- end
- How the multiline comment ends. Required.
-
-
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 Constructor Description MultilineCommentHighlighter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDefaultStyle()The default style namebooleanhighlight(CharIter in, java.util.List<Block> out)Perform highlighting on the current token stream.voidinit(Params params)InitializerbooleanstartsWith(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
-
-
-
-
Method Detail
-
init
public void init(Params params) throws HighlighterConfigurationException
Description copied from class:HighlighterInitializer- Overrides:
initin classHighlighter- Throws:
HighlighterConfigurationException
-
startsWith
public boolean startsWith(CharIter in)
Description copied from class:Highlighterreturn true if the current character is a possible match for this highlighter- Overrides:
startsWithin classHighlighter- Returns:
-
highlight
public boolean highlight(CharIter in, java.util.List<Block> out)
Description copied from class:HighlighterPerform highlighting on the current token stream. Return true when highlighting was performed, or false in case of a false positive.- Specified by:
highlightin classHighlighter- Returns:
-
getDefaultStyle
public java.lang.String getDefaultStyle()
Description copied from class:HighlighterThe default style name- Specified by:
getDefaultStylein classHighlighter- Returns:
-
-