public class GosuDocument extends PlainDocument
| Modifier and Type | Class and Description |
|---|---|
class |
GosuDocument.Scanner |
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElementlineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
GosuDocument() |
| Modifier and Type | Method and Description |
|---|---|
GosuDocument.Scanner |
createScanner() |
List<IParseTree> |
getLocations() |
ParseResultsException |
getParseResultsException() |
Pair<Boolean,ParseWarningForDeprecatedMember> |
getParseWarningStartingAt(int iPos) |
int |
getScannerStart(int p)
Fetch a reasonable location to start scanning
given the desired start location.
|
Integer |
getStyleCodeAtPosition(int iPosition)
Returns a style code for the absolute position in the document or null if
no code is mapped.
|
boolean |
hasErrorStartingAt(int iPos) |
protected void |
insertUpdate(AbstractDocument.DefaultDocumentEvent chng,
AttributeSet attr)
Updates document structure as a result of text insertion.
|
protected void |
removeUpdate(AbstractDocument.DefaultDocumentEvent chng)
Updates any document structure as a result of text removal.
|
void |
setLocations(List<IParseTree> locations)
The parsed Locations for the document.
|
void |
setLocationsOffset(int locationsOffset) |
void |
setParseResultsException(ParseResultsException pe) |
void |
setTokenizerInstructor(ITokenizerInstructor tokenizerInstructor) |
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertStringaddDocumentListener, addUndoableEditListener, createBranchElement, createLeafElement, createPosition, dump, fireChangedUpdate, fireInsertUpdate, fireRemoveUpdate, fireUndoableEditUpdate, getAsynchronousLoadPriority, getAttributeContext, getBidiRootElement, getContent, getCurrentWriter, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, postRemoveUpdate, putProperty, readLock, readUnlock, remove, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlockpublic GosuDocument.Scanner createScanner()
public void setParseResultsException(ParseResultsException pe)
public ParseResultsException getParseResultsException()
public void setLocations(List<IParseTree> locations)
public List<IParseTree> getLocations()
public void setLocationsOffset(int locationsOffset)
public boolean hasErrorStartingAt(int iPos)
public Pair<Boolean,ParseWarningForDeprecatedMember> getParseWarningStartingAt(int iPos)
public Integer getStyleCodeAtPosition(int iPosition)
public int getScannerStart(int p)
protected void insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr)
insertUpdate in class PlainDocumentchng - the change eventattr - the set of attributesprotected void removeUpdate(AbstractDocument.DefaultDocumentEvent chng)
removeUpdate in class PlainDocumentchng - the change eventpublic void setTokenizerInstructor(ITokenizerInstructor tokenizerInstructor)
Copyright © 2022. All rights reserved.