站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

org.netbeans.spi.lexer (Lexer) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.lexer/2 1.19.0 1

Package org.netbeans.spi.lexer

The main abstract class in the Lexer SPI that must be implemented is LanguageHierarchy that mainly defines set of token ids and token categories for the new language and its Lexer.

See:
          Description

Interface Summary
Lexer<T extends TokenId> Lexer reads input characters from LexerInput and groups them into tokens.
TokenPropertyProvider<T extends TokenId> Provides extra properties of a token.
TokenValidator<T extends TokenId> Token validator checks whether an existing token was affected by just performed input source modification so that it needs to be relexed.
 

Class Summary
CharPreprocessor Character preprocessor allows to translate a sequence of characters to a single character so it may be used for example for Unicode sequences translation.
LanguageEmbedding<T extends TokenId> Description of a particular language embedding including starting and ending skipped regions of a token containing this embedding and a definition of an embedded language hierarchy.
LanguageHierarchy<T extends TokenId> Definition of a language, its lexer and its embedded languages.
LanguageProvider The Language provider.
LexerInput Provides characters to feed the Lexer.
LexerRestartInfo<T extends TokenId> Lexer restart info contains all the necessary information for restarting of a lexer mainly the lexer input, state and token factory.
MutableTextInput<I> Mutable attributed character sequence allowing to listen for changes in its text.
TokenFactory<T extends TokenId> Lexer should delegate all the token instances creation to this class.
TokenHierarchyControl<I> Control class for managing token hierarchy of a mutable text input.
 

Package org.netbeans.spi.lexer Description

The main abstract class in the Lexer SPI that must be implemented is LanguageHierarchy that mainly defines set of token ids and token categories for the new language and its Lexer.
The language hierarchy may also define embedded languages.


org.netbeans.modules.lexer/2 1.19.0 1

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.