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 javax.swing.text.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.DocumentFilterjavax.swing.text.DocumentFilter.FilterBypass
- 
Field SummaryFields Modifier and Type Field Description protected StructuredSyntaxDocumentFilter.LexerNodelexerDeprecated.The root of the lexical parsing tree.protected java.util.SortedSetmlTextRunSetDeprecated.The position tree of multi-line comments.protected javax.swing.text.DefaultStyledDocumentstyledDocumentDeprecated.static java.lang.StringTAB_REPLACEMENTDeprecated.
- 
Constructor SummaryConstructors Constructor Description StructuredSyntaxDocumentFilter(javax.swing.text.DefaultStyledDocument document)Deprecated.Creates a new instance of StructuredSyntaxDocumentFilter
- 
Method SummaryModifier 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(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, java.lang.String text, javax.swing.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(javax.swing.text.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(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, int length, java.lang.String text, javax.swing.text.AttributeSet attrs)Deprecated.Replace a string in the document, and then parse it if the parser has been set.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Field Details- 
TAB_REPLACEMENTpublic static final java.lang.String TAB_REPLACEMENTDeprecated.- See Also:
- Constant Field Values
 
- 
lexerDeprecated.The root of the lexical parsing tree.
- 
styledDocumentprotected javax.swing.text.DefaultStyledDocument styledDocumentDeprecated.
- 
mlTextRunSetprotected java.util.SortedSet mlTextRunSetDeprecated.The position tree of multi-line comments.
 
- 
- 
Constructor Details- 
StructuredSyntaxDocumentFilterpublic StructuredSyntaxDocumentFilter(javax.swing.text.DefaultStyledDocument document)Deprecated.Creates a new instance of StructuredSyntaxDocumentFilter- Parameters:
- document- the styled document to parse
 
 
- 
- 
Method Details- 
createLexerNodeDeprecated.Create a new LexerNode for adding to root.- Returns:
- a new LexerNode
 
- 
getRootNodeDeprecated.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(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, java.lang.String text, javax.swing.text.AttributeSet attrs) throws javax.swing.text.BadLocationExceptionDeprecated.Insert a string into the document, and then parse it if the parser has been set.- Overrides:
- insertStringin class- javax.swing.text.DocumentFilter
- Parameters:
- fb-
- offset-
- text-
- attrs-
- Throws:
- javax.swing.text.BadLocationException
 
- 
parseDocumentprotected void parseDocument(int offset, int length) throws javax.swing.text.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:
- javax.swing.text.BadLocationException
 
- 
removepublic void remove(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, int length) throws javax.swing.text.BadLocationExceptionDeprecated.Remove a string from the document, and then parse it if the parser has been set.- Overrides:
- removein class- javax.swing.text.DocumentFilter
- Parameters:
- fb-
- offset-
- length-
- Throws:
- javax.swing.text.BadLocationException
 
- 
replacepublic void replace(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, int length, java.lang.String text, javax.swing.text.AttributeSet attrs) throws javax.swing.text.BadLocationExceptionDeprecated.Replace a string in the document, and then parse it if the parser has been set.- Overrides:
- replacein class- javax.swing.text.DocumentFilter
- Parameters:
- fb-
- offset-
- length-
- text-
- attrs-
- Throws:
- javax.swing.text.BadLocationException
 
 
-