- All Known Implementing Classes:
- DefaultTokenHandler, DummyTokenHandler
- public interface TokenHandler
Token markers send tokens to implementations of this interface.
- Since:
- jEdit 4.1pre1
- Version:
- $Id: TokenHandler.java,v 1.6 2003/10/26 19:43:58 spestov Exp $
|
Method Summary |
void |
handleToken(javax.swing.text.Segment seg,
byte id,
int offset,
int length,
org.gjt.sp.jedit.syntax.TokenMarker.LineContext context)
Called by the token marker when a syntax token has been parsed. |
void |
setLineContext(org.gjt.sp.jedit.syntax.TokenMarker.LineContext lineContext)
The token handler can compare this object with the object
previously given for this line to see if the token type at the end
of the line has changed (meaning subsequent lines might need to be
retokenized). |
handleToken
public void handleToken(javax.swing.text.Segment seg,
byte id,
int offset,
int length,
org.gjt.sp.jedit.syntax.TokenMarker.LineContext context)
- Called by the token marker when a syntax token has been parsed.
- Since:
- jEdit 4.2pre3
setLineContext
public void setLineContext(org.gjt.sp.jedit.syntax.TokenMarker.LineContext lineContext)
- The token handler can compare this object with the object
previously given for this line to see if the token type at the end
of the line has changed (meaning subsequent lines might need to be
retokenized).
- Since:
- jEdit 4.2pre6