|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.text.DocumentFilter groovy.ui.text.StructuredSyntaxDocumentFilter
public class StructuredSyntaxDocumentFilter extends DocumentFilter
Nested Class Summary | |
---|---|
class |
StructuredSyntaxDocumentFilter.LexerNode
|
protected class |
StructuredSyntaxDocumentFilter.MultiLineRun
|
Field Summary | |
---|---|
static String |
TAB_REPLACEMENT
|
protected StructuredSyntaxDocumentFilter.LexerNode |
lexer
The root of the lexical parsing tree. |
protected SortedSet |
mlTextRunSet
The position tree of multi-line comments. |
protected DefaultStyledDocument |
styledDocument
|
Constructor Summary | |
StructuredSyntaxDocumentFilter(DefaultStyledDocument document)
Creates a new instance of StructuredSyntaxDocumentFilter |
Method Summary | |
---|---|
StructuredSyntaxDocumentFilter.LexerNode
|
createLexerNode()
Create a new LexerNode for adding to root. |
StructuredSyntaxDocumentFilter.LexerNode
|
getRootNode()
Get the root node for lexing the document. |
void
|
insertString(DocumentFilter.FilterBypass fb, int offset, String text, AttributeSet attrs)
|
protected void
|
parseDocument(int offset, int length)
Parse the Document to update the character styles given an initial start position. |
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. |
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. |
Methods inherited from class DocumentFilter | |
---|---|
insertString, remove, replace, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
public static final String TAB_REPLACEMENT
protected StructuredSyntaxDocumentFilter.LexerNode lexer
protected SortedSet mlTextRunSet
protected DefaultStyledDocument styledDocument
Constructor Detail |
---|
public StructuredSyntaxDocumentFilter(DefaultStyledDocument document)
document
- the styled document to parse
Method Detail |
---|
public StructuredSyntaxDocumentFilter.LexerNode createLexerNode()
public StructuredSyntaxDocumentFilter.LexerNode getRootNode()
public void insertString(DocumentFilter.FilterBypass fb, int offset, String text, AttributeSet attrs)
protected void parseDocument(int offset, int length)
public void remove(DocumentFilter.FilterBypass fb, int offset, int length)
public void replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attrs)
Copyright © 2003-2013 The Codehaus. All rights reserved.