public class StructuredSyntaxDocumentFilter extends DocumentFilter
Modifiers | Name | Description |
---|---|---|
class |
StructuredSyntaxDocumentFilter.LexerNode |
Modifiers | Name | Description |
---|---|---|
static String |
TAB_REPLACEMENT |
Constructor and description |
---|
StructuredSyntaxDocumentFilter(DefaultStyledDocument document) Creates a new instance of StructuredSyntaxDocumentFilter |
Type Params | Return Type | Name and description |
---|---|---|
|
public LexerNode |
createLexerNode() Create a new LexerNode for adding to root. |
|
public LexerNode |
getRootNode() Get the root node for lexing the document. |
|
public void |
insertString(DocumentFilter.FilterBypass fb, int offset, String text, AttributeSet attrs) Insert a string into the document, and then parse it if the parser has been set. |
|
public void |
remove(DocumentFilter.FilterBypass fb, int offset, int length) Remove a string from the document, and then parse it if the parser has been set. |
|
public void |
replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attrs) Replace a string in the document, and then parse it if the parser has been set. |
Creates a new instance of StructuredSyntaxDocumentFilter
document
- the styled document to parseCreate a new LexerNode for adding to root.
Get the root node for lexing the document. Children can be added such that matching patterns can be further parsed if required.
Insert a string into the document, and then parse it if the parser has been set.
Remove a string from the document, and then parse it if the parser has been set.
Replace a string in the document, and then parse it if the parser has been set.
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.