org.gjt.sp.jedit.syntax
Interface TokenHandler
- 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.4 2003/02/07 21:57:43 spestov Exp $
- Author:
- Slava Pestov
handleToken
public void handleToken(byte id,
int offset,
int length,
TokenMarker.LineContext context)
- Called by the token marker when a syntax token has been parsed.
- Parameters:
id
- The token type (one of the constants in the
Token
class).offset
- The start offset of the tokenlength
- The number of characters in the tokencontext
- The line context- Since:
- jEdit 4.1pre1