public class TaskTagParser extends AbstractParser
TODO",
"FIXME", etc. in source code comments.| Modifier and Type | Class and Description |
|---|---|
static class |
TaskTagParser.TaskNotice
A parser notice that signifies a task.
|
| Constructor and Description |
|---|
TaskTagParser()
Creates a new task parser.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getTaskPattern()
Returns the regular expression used to search for tasks.
|
ParseResult |
parse(RSyntaxDocument doc,
String style)
Parses input from the specified document.
|
void |
setTaskPattern(String pattern)
Sets the pattern of task identifiers.
|
getHyperlinkListener, getImageBase, isEnabled, setEnabled, setHyperlinkListenerpublic TaskTagParser()
TODO",
"FIXME", and "HACK".public String getTaskPattern()
null if no
regular expression was specified (or an empty string was
specified).setTaskPattern(String)public ParseResult parse(RSyntaxDocument doc, String style)
Parserdoc - The document to parse. This document is in a read lock,
so it cannot be modified while parsing is occurring.style - The language being rendered, such as
SyntaxConstants.SYNTAX_STYLE_JAVA.null.public void setTaskPattern(String pattern) throws PatternSyntaxException
TODO|FIXME|HACK|REMIND".pattern - The pattern. A value of null or an
empty string effectively disables task parsing.PatternSyntaxException - If pattern is an invalid
regular expression.getTaskPattern()