net.sf.xslthl.highlighters
Class AnnotationHighlighter
java.lang.Object
net.sf.xslthl.Highlighter
net.sf.xslthl.highlighters.AnnotationHighlighter
public class AnnotationHighlighter
- extends Highlighter
Recognizes annotations. Accepted parameters:
- start
- How the annotation starts. Required.
- end
- How the annotation ends. Optional.
- valueStart
- String used to start the value section of annotations
- valueEnd
- String used to end the value section of annotations
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
start
protected String start
end
protected String end
valueStart
protected String valueStart
valueEnd
protected String valueEnd
AnnotationHighlighter
public AnnotationHighlighter()
init
public void init(Params params)
throws HighlighterConfigurationException
- Description copied from class:
Highlighter
- Initializer
- Overrides:
init
in class Highlighter
- Throws:
HighlighterConfigurationException
getDefaultStyle
public String getDefaultStyle()
- Description copied from class:
Highlighter
- The default style name
- Specified by:
getDefaultStyle
in class Highlighter
- Returns:
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 class Highlighter
- Returns:
highlight
public boolean highlight(CharIter in,
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 class Highlighter
- Returns:
Copyright © 2005-2014. All Rights Reserved.