protected static class SimpleRegexSyntaxHighlighter.RegexHighlightGrammarBuilder
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
SimpleRegexSyntaxHighlighter.RegexHighlightGrammar |
create() |
Builds the grammar.
|
SimpleRegexSyntaxHighlighter.RegexHighlightGrammar |
create(int flags) |
Builds the grammar.
|
SimpleRegexSyntaxHighlighter.RegexHighlightGrammarBuilder |
or(java.util.Collection<java.lang.String> cssClass,
java.lang.String regex) |
Adds a branch to the alternation (...|pattern).
|
public SimpleRegexSyntaxHighlighter.RegexHighlightGrammarBuilder or(java.util.Collection<java.lang.String> cssClass, java.lang.String regex)
cssClass
- css class that the matching regions should bearregex
- Regex patternpublic SimpleRegexSyntaxHighlighter.RegexHighlightGrammar create()
public SimpleRegexSyntaxHighlighter.RegexHighlightGrammar create(int flags)
flags
- Regex compilation flagsCopyright © 2002–2018 PMD. All rights reserved.