public class JavaDocument extends DefaultStyledDocument
DefaultStyledDocument.AttributeUndoableEdit, DefaultStyledDocument.ElementBuffer, DefaultStyledDocument.ElementSpec, DefaultStyledDocument.SectionElementAbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElementbuffer, BUFFER_SIZE_DEFAULTBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
JavaDocument() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
addMatchingBrace(int offset) |
protected String |
addMatchingQuotationMark() |
protected String |
addParenthesis() |
protected String |
addWhiteSpace(int offset) |
String |
findErrorMessage(int iPos) |
protected void |
fireInsertUpdate(DocumentEvent evt) |
protected void |
fireRemoveUpdate(DocumentEvent evt) |
protected String |
getEndDelimiter() |
DiagnosticCollector<JavaFileObject> |
getErrorHandler() |
protected String |
getSingleLineDelimiter() |
protected String |
getStartDelimiter() |
void |
insertString(int offset,
String str,
AttributeSet a)
Override to apply syntax highlighting after the document has been updated
|
protected boolean |
isCharQuoteDelimiter(String character) |
protected boolean |
isDelimiter(String character) |
protected boolean |
isKeyword(String token) |
protected boolean |
isQuoteDelimiter(String character) |
void |
remove(int offset,
int length) |
void |
setErrorHandler(DiagnosticCollector<JavaFileObject> errorHandler) |
addDocumentListener, addStyle, create, createDefaultRoot, getBackground, getCharacterElement, getDefaultRootElement, getFont, getForeground, getLogicalStyle, getParagraphElement, getStyle, getStyleNames, insert, insertUpdate, removeDocumentListener, removeElement, removeStyle, removeUpdate, setCharacterAttributes, setLogicalStyle, setParagraphAttributes, styleChangedaddUndoableEditListener, createBranchElement, createLeafElement, createPosition, dump, fireChangedUpdate, fireUndoableEditUpdate, getAsynchronousLoadPriority, getAttributeContext, getBidiRootElement, getContent, getCurrentWriter, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, postRemoveUpdate, putProperty, readLock, readUnlock, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddUndoableEditListener, createPosition, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, putProperty, removeUndoableEditListener, renderpublic void insertString(int offset,
String str,
AttributeSet a)
throws BadLocationException
insertString in interface DocumentinsertString in class AbstractDocumentBadLocationExceptionpublic void remove(int offset,
int length)
throws BadLocationException
remove in interface Documentremove in class AbstractDocumentBadLocationExceptionprotected void fireInsertUpdate(DocumentEvent evt)
fireInsertUpdate in class AbstractDocumentprotected void fireRemoveUpdate(DocumentEvent evt)
fireRemoveUpdate in class AbstractDocumentprotected boolean isDelimiter(String character)
protected boolean isQuoteDelimiter(String character)
protected boolean isCharQuoteDelimiter(String character)
protected boolean isKeyword(String token)
protected String getStartDelimiter()
protected String getEndDelimiter()
protected String getSingleLineDelimiter()
protected String addMatchingQuotationMark() throws BadLocationException
BadLocationExceptionprotected String addMatchingBrace(int offset) throws BadLocationException
BadLocationExceptionprotected String addWhiteSpace(int offset) throws BadLocationException
BadLocationExceptionprotected String addParenthesis() throws BadLocationException
BadLocationExceptionpublic DiagnosticCollector<JavaFileObject> getErrorHandler()
public void setErrorHandler(DiagnosticCollector<JavaFileObject> errorHandler)
public String findErrorMessage(int iPos)
Copyright © 2020. All rights reserved.