public class GroovyFilter
extends StructuredSyntaxDocumentFilter
Regex-based syntax-highlighting filter for Groovy source text.
| Modifiers | Name | Description |
|---|---|---|
static String |
ANNOTATION |
Pattern matching annotations. |
static String |
BINARY_INTEGER_LITERAL |
Pattern matching binary integer literals. |
static String |
COMMENT |
Style name used for comments. |
static String |
DECIMAL_FLOATING_POINT_LITERAL |
Pattern matching decimal floating-point literals. |
static String |
DECIMAL_INTEGER_LITERAL |
Pattern matching decimal integer literals. |
static String |
DIGIT |
Style name used for numeric literals. |
static String |
HEXADECIMAL_FLOATING_POINT_LITERAL |
Pattern matching hexadecimal floating-point literals. |
static String |
HEX_INTEGER_LITERAL |
Pattern matching hexadecimal integer literals. |
static String |
IDENT |
Pattern matching identifiers. |
static String |
LEFT_PARENS |
Pattern matching left parentheses inside operation matches. |
static String |
OCTAL_INTEGER_LITERAL |
Pattern matching octal integer literals. |
static String |
OPERATION |
Pattern matching method-style identifiers followed by an opening parenthesis. |
static String |
QUOTES |
Pattern matching double-quoted and triple-double-quoted strings. |
static String |
RESERVED_WORD |
Style name used for reserved words. |
static String[] |
RESERVED_WORDS |
Patterns matching Groovy reserved words. |
static String |
SINGLE_QUOTES |
Pattern matching single-quoted and triple-single-quoted strings. |
static String |
SLASHY_QUOTES |
Pattern matching slashy and dollar-slashy strings. |
static String |
SLASH_SLASH_COMMENT |
Pattern matching line comments. |
static String |
SLASH_STAR_COMMENT |
Pattern matching block comments. |
| Fields inherited from class | Fields |
|---|---|
class StructuredSyntaxDocumentFilter |
TAB_REPLACEMENT, lexer, mlTextRunSet, styledDocument |
| Constructor and description |
|---|
GroovyFilter(DefaultStyledDocument doc)Creates a new instance of GroovyFilter |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static void |
installAutoTabAction(JTextComponent tComp)Installs the auto-indent action on the supplied text component. |
| Methods inherited from class | Name |
|---|---|
class StructuredSyntaxDocumentFilter |
createLexerNode, getRootNode, insertString, parseDocument, remove, replace |
Pattern matching annotations.
Pattern matching binary integer literals.
Style name used for comments.
Pattern matching decimal floating-point literals.
Pattern matching decimal integer literals.
Style name used for numeric literals.
Pattern matching hexadecimal floating-point literals.
Pattern matching hexadecimal integer literals.
Pattern matching identifiers.
Pattern matching left parentheses inside operation matches.
Pattern matching octal integer literals.
Pattern matching method-style identifiers followed by an opening parenthesis.
Pattern matching double-quoted and triple-double-quoted strings.
Style name used for reserved words.
Patterns matching Groovy reserved words.
Pattern matching single-quoted and triple-single-quoted strings.
Pattern matching slashy and dollar-slashy strings.
Pattern matching line comments.
Pattern matching block comments.
Creates a new instance of GroovyFilter
doc - the document to highlightInstalls the auto-indent action on the supplied text component.
tComp - the text component to configureCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.