public class DocumentTokenSource
extends java.lang.Object
BacktrackingLexerDocumentTokenSource
, the damaged region
returned by this class always includes the token touching the region the event refers to,
i.e. the first token overlapping wit the region or the token that ends with the beginning
of the region.Modifier and Type | Class and Description |
---|---|
static class |
DocumentTokenSource.IRegionIterable |
protected static class |
DocumentTokenSource.RepairEntryData |
static class |
DocumentTokenSource.TokenAdapter |
static class |
DocumentTokenSource.TokenInfo |
Constructor and Description |
---|
DocumentTokenSource() |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.jface.text.IRegion |
computeDamageRegion(org.eclipse.jface.text.DocumentEvent e) |
protected Lexer |
createLexer(java.lang.String string)
Deprecated.
use
createTokenSource(String) instead. |
protected DocumentTokenSource.TokenInfo |
createTokenInfo(org.antlr.runtime.CommonToken token) |
protected java.util.List<DocumentTokenSource.TokenInfo> |
createTokenInfos(java.lang.String string) |
protected org.antlr.runtime.TokenSource |
createTokenSource(java.lang.String string) |
protected void |
doCheckInvariant(org.eclipse.jface.text.DocumentEvent e) |
protected java.util.List<DocumentTokenSource.TokenInfo> |
getInternalModifyableTokenInfos() |
org.eclipse.jface.text.IRegion |
getLastDamagedRegion() |
protected DocumentTokenSource.RepairEntryData |
getRepairEntryData(org.eclipse.jface.text.DocumentEvent e) |
java.lang.Iterable<ILexerTokenRegion> |
getTokenInfos() |
boolean |
isCheckInvariant() |
void |
setCheckInvariant(boolean checkInvariant) |
void |
setLexer(com.google.inject.Provider<Lexer> lexer) |
protected void |
setTokens(java.util.List<DocumentTokenSource.TokenInfo> infos) |
void |
updateStructure(org.eclipse.jface.text.DocumentEvent e) |
public java.lang.Iterable<ILexerTokenRegion> getTokenInfos()
public org.eclipse.jface.text.IRegion getLastDamagedRegion()
public void setLexer(com.google.inject.Provider<Lexer> lexer)
protected void setTokens(java.util.List<DocumentTokenSource.TokenInfo> infos)
protected java.util.List<DocumentTokenSource.TokenInfo> getInternalModifyableTokenInfos()
protected java.util.List<DocumentTokenSource.TokenInfo> createTokenInfos(java.lang.String string)
protected DocumentTokenSource.TokenInfo createTokenInfo(org.antlr.runtime.CommonToken token)
public void updateStructure(org.eclipse.jface.text.DocumentEvent e)
protected void doCheckInvariant(org.eclipse.jface.text.DocumentEvent e)
protected org.eclipse.jface.text.IRegion computeDamageRegion(org.eclipse.jface.text.DocumentEvent e)
protected DocumentTokenSource.RepairEntryData getRepairEntryData(org.eclipse.jface.text.DocumentEvent e) throws java.lang.Exception
java.lang.Exception
@Deprecated protected Lexer createLexer(java.lang.String string)
createTokenSource(String)
instead.protected org.antlr.runtime.TokenSource createTokenSource(java.lang.String string)
public void setCheckInvariant(boolean checkInvariant)
public boolean isCheckInvariant()