public class SyntaxDocument
extends PlainDocument
Constructor and Description |
---|
SyntaxDocument() |
Modifier and Type | Method and Description |
---|---|
void |
addUndoableEdit(UndoableEdit edit)
Adds an undoable edit to this document's undo list.
|
void |
beginCompoundEdit()
Starts a compound edit that can be undone in one operation.
|
void |
endCompoundEdit()
Ends a compound edit that can be undone in one operation.
|
TokenMarkerState |
getTokenMarker()
Returns the token marker that is to be used to split lines
of this document up into tokens.
|
void |
setTokenMarker(TokenMarker tm)
Sets the token marker that is to be used to split lines of
this document up into tokens.
|
void |
tokenizeLines()
Reparses the document, by passing all lines to the token
marker.
|
void |
tokenizeLines(int start,
int len)
Reparses the document, by passing the specified lines to the
token marker.
|
addDocumentListener, addUndoableEditListener, createPosition, dump, getAsynchronousLoadPriority, getBidiRootElement, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, putProperty, readLock, readUnlock, remove, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties
public TokenMarkerState getTokenMarker()
public void setTokenMarker(TokenMarker tm)
tm
- The new token markerpublic void tokenizeLines()
public void tokenizeLines(int start, int len)
start
- The first line to parselen
- The number of lines, after the first one to parsepublic void beginCompoundEdit()
public void endCompoundEdit()
public void addUndoableEdit(UndoableEdit edit)
edit
- The undoable edit