public class DBInputProcessorToken extends Object implements DBInputProcessor, TextPaneDelegate, XJNotificationObserver
| Modifier and Type | Class and Description |
|---|---|
protected class |
DBInputProcessorToken.MyMouseListener |
protected class |
DBInputProcessorToken.MyMouseMotionListener |
TOKEN_DEAD, TOKEN_HIDDEN, TOKEN_NORMAL| Constructor and Description |
|---|
DBInputProcessorToken(DebuggerTab debuggerTab,
TextPane textPane) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConsumeAttribute(org.antlr.runtime.Token token,
AttributeSet attribute) |
void |
addToken(org.antlr.runtime.Token token) |
void |
addTokenLT(org.antlr.runtime.Token token) |
void |
close() |
void |
consumeToken(org.antlr.runtime.Token token,
int flavor) |
void |
createTextAttributes() |
void |
drawToken(DBInputTextTokenInfo info,
Graphics2D g,
Color c,
boolean fill) |
org.antlr.runtime.Token |
getCurrentToken() |
int |
getCurrentTokenIndex() |
DBInputTextTokenInfo |
getTokenInfoAtPositionIndex(int index) |
DBInputTextTokenInfo |
getTokenInfoAtTokenIndex(int index) |
DBInputTextTokenInfo |
getTokenInfoForToken(org.antlr.runtime.Token t) |
void |
highlightToken(int index)
This method highlights the token at the specified index
in the input stream.
|
boolean |
ignoreToken(org.antlr.runtime.Token t)
On Windows, ignore the LF token following a CR because each
end of line is represented by two characters while Swing
renders the text using only LF (normalized).
|
boolean |
isBreakpointAtToken(org.antlr.runtime.Token token) |
boolean |
isTokensBoxVisible() |
void |
LT(org.antlr.runtime.Token token) |
void |
notificationFire(Object source,
String name) |
void |
removeAllLT() |
void |
removeTokenLT(org.antlr.runtime.Token token) |
void |
render() |
String |
renderTokensText() |
void |
reset() |
void |
rewind(int start) |
void |
rewindAll() |
void |
selectToken(org.antlr.runtime.Token t)
This method selects the token t in both the grammar and the
input stream
|
void |
setDrawTokensBox(boolean flag) |
void |
setLocation(DBEventLocation event) |
void |
stop() |
void |
textPaneDidPaint(Graphics g) |
void |
updateOnBreakEvent() |
public static final Color HIGHLIGHTED_COLOR
public static final Color INPUT_BREAKPOINT_COLOR
protected DebuggerTab debuggerTab
protected TextPane textPane
protected int mouseIndex
protected LinkedList<Integer> inputTokenIndexes
protected Map<Integer,DBInputTextTokenInfo> indexToTokenInfoMap
protected Map<Integer,AttributeSet> indexToConsumeAttributeMap
protected int currentTokenIndex
protected int currentTokenIndexInText
protected DBEventLocation locationEvent
protected int locationCharInLine
protected SimpleAttributeSet attributeNonConsumed
protected SimpleAttributeSet attributeConsume
protected SimpleAttributeSet attributeConsumeHidden
protected SimpleAttributeSet attributeConsumeDead
protected SimpleAttributeSet attributeLookahead
protected boolean drawTokensBox
public DBInputProcessorToken(DebuggerTab debuggerTab, TextPane textPane)
public void close()
public void setDrawTokensBox(boolean flag)
public boolean isTokensBoxVisible()
public int getCurrentTokenIndex()
getCurrentTokenIndex in interface DBInputProcessorpublic void setLocation(DBEventLocation event)
setLocation in interface DBInputProcessorpublic void consumeToken(org.antlr.runtime.Token token,
int flavor)
consumeToken in interface DBInputProcessorpublic void LT(org.antlr.runtime.Token token)
LT in interface DBInputProcessorpublic boolean ignoreToken(org.antlr.runtime.Token t)
public void addConsumeAttribute(org.antlr.runtime.Token token,
AttributeSet attribute)
public void addTokenLT(org.antlr.runtime.Token token)
public void removeTokenLT(org.antlr.runtime.Token token)
public void removeAllLT()
removeAllLT in interface DBInputProcessorpublic void stop()
public void reset()
reset in interface DBInputProcessorpublic void rewindAll()
rewindAll in interface DBInputProcessorpublic void rewind(int start)
rewind in interface DBInputProcessorpublic void addToken(org.antlr.runtime.Token token)
public org.antlr.runtime.Token getCurrentToken()
public String renderTokensText()
public void render()
public void updateOnBreakEvent()
public void createTextAttributes()
public void textPaneDidPaint(Graphics g)
textPaneDidPaint in interface TextPaneDelegatepublic void drawToken(DBInputTextTokenInfo info, Graphics2D g, Color c, boolean fill)
public DBInputTextTokenInfo getTokenInfoAtTokenIndex(int index)
getTokenInfoAtTokenIndex in interface DBInputProcessorpublic DBInputTextTokenInfo getTokenInfoAtPositionIndex(int index)
public boolean isBreakpointAtToken(org.antlr.runtime.Token token)
public void highlightToken(int index)
public void selectToken(org.antlr.runtime.Token t)
public DBInputTextTokenInfo getTokenInfoForToken(org.antlr.runtime.Token t)
public void notificationFire(Object source, String name)
notificationFire in interface XJNotificationObserverCopyright © 2013. All rights reserved.