Package net.sf.xslthl.highlighters
Class HeredocHighlighter
- java.lang.Object
-
- net.sf.xslthl.Highlighter
-
- net.sf.xslthl.highlighters.HeredocHighlighter
-
public class HeredocHighlighter extends Highlighter
Accepts heredoc constructions. Accepted parameters:- start
- How the heredoc construction starts. Required.
- quote
- Allowed quote characters to be used in the identifier name. This parameter can be used more than once.
- noWhiteSpace
- whitespace after start is not allowed.
- looseTerminator
- if set the identifier does not have to start on a new line
- flag
- Flags that can be put after the 'start'. This parameter can be used more than once.
-
-
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 HeredocHighlighter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDefaultStyle()
The default style nameboolean
highlight(CharIter in, java.util.List<Block> out)
Perform highlighting on the current token stream.void
init(Params params)
Initializerboolean
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
-
-
-
-
Method Detail
-
init
public void init(Params params) throws HighlighterConfigurationException
Description copied from class:Highlighter
Initializer- Overrides:
init
in classHighlighter
- Throws:
HighlighterConfigurationException
-
startsWith
public boolean startsWith(CharIter in)
Description copied from class:Highlighter
return true if the current character is a possible match for this highlighter- Overrides:
startsWith
in classHighlighter
- Returns:
-
highlight
public boolean highlight(CharIter in, java.util.List<Block> out)
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
- Returns:
-
getDefaultStyle
public java.lang.String getDefaultStyle()
Description copied from class:Highlighter
The default style name- Specified by:
getDefaultStyle
in classHighlighter
- Returns:
-
-