org.netbeans.modules.lexer/2 1.39.1 1

org.netbeans.spi.lexer
Class LexerRestartInfo<T extends TokenId>

java.lang.Object
  extended by org.netbeans.spi.lexer.LexerRestartInfo<T>

public final class LexerRestartInfo<T extends TokenId>
extends Object

Lexer restart info contains all the necessary information for restarting of a lexer mainly the lexer input, state and token factory.

When lexing embedded sections if LanguageEmbedding.joinSections() returns true then the state() will return state after the last token of a corresponding previous section (with the same language path).


Method Summary
 Object getAttributeValue(Object key)
          Get value of an attribute or null if the attribute is not set or if there are no attributes at all.
 LexerInput input()
          Get lexer input from which the lexer should read characters.
 InputAttributes inputAttributes()
          Get supplementary information about particular input source or null if there are no extra attributes.
 LanguagePath languagePath()
          Get language path at which the lexer operates.
 Object state()
          Get state from which the lexer should start lexing.
 TokenFactory<T> tokenFactory()
          Get token factory through which the lexer should produce tokens.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

input

public LexerInput input()
Get lexer input from which the lexer should read characters.


tokenFactory

public TokenFactory<T> tokenFactory()
Get token factory through which the lexer should produce tokens.


state

public Object state()
Get state from which the lexer should start lexing.


languagePath

public LanguagePath languagePath()
Get language path at which the lexer operates.


inputAttributes

public InputAttributes inputAttributes()
Get supplementary information about particular input source or null if there are no extra attributes.


getAttributeValue

public Object getAttributeValue(Object key)
Get value of an attribute or null if the attribute is not set or if there are no attributes at all.


org.netbeans.modules.lexer/2 1.39.1 1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.