Package groovy.ui.text
Class StructuredSyntaxDocumentFilter
- java.lang.Object
- 
- javax.swing.text.DocumentFilter
- 
- groovy.ui.text.StructuredSyntaxDocumentFilter
 
 
- 
- Direct Known Subclasses:
- GroovyFilter
 
 @Deprecated public class StructuredSyntaxDocumentFilter extends DocumentFilter Deprecated.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classStructuredSyntaxDocumentFilter.LexerNodeDeprecated.protected classStructuredSyntaxDocumentFilter.MultiLineRunDeprecated.- 
Nested classes/interfaces inherited from class javax.swing.text.DocumentFilterDocumentFilter.FilterBypass
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected StructuredSyntaxDocumentFilter.LexerNodelexerDeprecated.The root of the lexical parsing tree.protected SortedSetmlTextRunSetDeprecated.The position tree of multi-line comments.protected DefaultStyledDocumentstyledDocumentDeprecated.static StringTAB_REPLACEMENTDeprecated.
 - 
Constructor SummaryConstructors Constructor Description StructuredSyntaxDocumentFilter(DefaultStyledDocument document)Deprecated.Creates a new instance of StructuredSyntaxDocumentFilter
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StructuredSyntaxDocumentFilter.LexerNodecreateLexerNode()Deprecated.Create a new LexerNode for adding to root.StructuredSyntaxDocumentFilter.LexerNodegetRootNode()Deprecated.Get the root node for lexing the document.voidinsertString(DocumentFilter.FilterBypass fb, int offset, String text, AttributeSet attrs)Deprecated.Insert a string into the document, and then parse it if the parser has been set.protected voidparseDocument(int offset, int length)Deprecated.Parse the Document to update the character styles given an initial start position.voidremove(DocumentFilter.FilterBypass fb, int offset, int length)Deprecated.Remove a string from the document, and then parse it if the parser has been set.voidreplace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attrs)Deprecated.Replace a string in the document, and then parse it if the parser has been set.
 
- 
- 
- 
Field Detail- 
TAB_REPLACEMENTpublic static final String TAB_REPLACEMENT Deprecated.- See Also:
- Constant Field Values
 
 - 
lexerprotected StructuredSyntaxDocumentFilter.LexerNode lexer Deprecated.The root of the lexical parsing tree.
 - 
styledDocumentprotected DefaultStyledDocument styledDocument Deprecated.
 - 
mlTextRunSetprotected SortedSet mlTextRunSet Deprecated.The position tree of multi-line comments.
 
- 
 - 
Constructor Detail- 
StructuredSyntaxDocumentFilterpublic StructuredSyntaxDocumentFilter(DefaultStyledDocument document) Deprecated.Creates a new instance of StructuredSyntaxDocumentFilter- Parameters:
- document- the styled document to parse
 
 
- 
 - 
Method Detail- 
createLexerNodepublic StructuredSyntaxDocumentFilter.LexerNode createLexerNode() Deprecated.Create a new LexerNode for adding to root.- Returns:
- a new LexerNode
 
 - 
getRootNodepublic StructuredSyntaxDocumentFilter.LexerNode getRootNode() Deprecated.Get the root node for lexing the document. Children can be added such that matching patterns can be further parsed if required.- Returns:
- the root lexing node.
 
 - 
insertStringpublic void insertString(DocumentFilter.FilterBypass fb, int offset, String text, AttributeSet attrs) throws BadLocationException Deprecated.Insert a string into the document, and then parse it if the parser has been set.- Overrides:
- insertStringin class- DocumentFilter
- Parameters:
- fb-
- offset-
- text-
- attrs-
- Throws:
- BadLocationException
 
 - 
parseDocumentprotected void parseDocument(int offset, int length) throws BadLocationExceptionDeprecated.Parse the Document to update the character styles given an initial start position. Called by the filter after it has updated the text.- Parameters:
- offset-
- length-
- Throws:
- BadLocationException
 
 - 
removepublic void remove(DocumentFilter.FilterBypass fb, int offset, int length) throws BadLocationException Deprecated.Remove a string from the document, and then parse it if the parser has been set.- Overrides:
- removein class- DocumentFilter
- Parameters:
- fb-
- offset-
- length-
- Throws:
- BadLocationException
 
 - 
replacepublic void replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attrs) throws BadLocationException Deprecated.Replace a string in the document, and then parse it if the parser has been set.- Overrides:
- replacein class- DocumentFilter
- Parameters:
- fb-
- offset-
- length-
- text-
- attrs-
- Throws:
- BadLocationException
 
 
- 
 
-