|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
---|---|
MLComparator |
ML_COMPARATOR
|
String |
TAB_REPLACEMENT
|
CharBuffer |
buffer
|
LexerNode |
lexer
|
TreeSet |
mlTextRunSet
|
Segment |
segment
|
DefaultStyledDocument |
styledDocument
|
Constructor Summary | |
StructuredSyntaxDocumentFilter(DefaultStyledDocument document)
Creates a new instance of StructuredSyntaxDocumentFilter |
Method Summary | |
---|---|
int |
calcBeginParse(int offset)
|
int |
calcEndParse(int offset)
|
static void |
checkRegexp(String regexp)
The root of the lexical parsing tree. |
LexerNode |
createLexerNode()
Create a new LexerNode for adding to root. |
MultiLineRun |
getMultiLineRun(int offset)
|
LexerNode |
getRootNode()
Get the root node for lexing the document. |
void |
insertString(def fb, int offset, String text, AttributeSet attrs)
Insert a string into the document, and then parse it if the parser has been set. |
void |
parseDocument(int offset, int length)
Parse the Document to update the character styles given an initial start position. |
void |
remove(def fb, int offset, int length)
Remove a string from the document, and then parse it if the parser has been set. |
void |
replace(def 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. |
String |
replaceMetaCharacters(String string)
|
Constructor Detail |
---|
public StructuredSyntaxDocumentFilter(DefaultStyledDocument document)
Method Detail |
---|
int calcBeginParse(int offset)
int calcEndParse(int offset)
static void checkRegexp(String regexp)
public LexerNode createLexerNode()
MultiLineRun getMultiLineRun(int offset)
public LexerNode getRootNode()
public void insertString(def fb, int offset, String text, AttributeSet attrs)
void parseDocument(int offset, int length)
public void remove(def fb, int offset, int length)
public void replace(def fb, int offset, int length, String text, AttributeSet attrs)
String replaceMetaCharacters(String string)