com.intellij.lexer
Class LexerBase

java.lang.Object
  extended by com.intellij.lexer.LexerBase
All Implemented Interfaces:
Lexer
Direct Known Subclasses:
CompositeLexer, EmptyLexer, FilterLexer, FlexAdapter, LayeredLexer, MergingLexerAdapter, StringLiteralLexer

public abstract class LexerBase
extends java.lang.Object
implements Lexer


Constructor Summary
LexerBase()
           
 
Method Summary
 LexerPosition getCurrentPosition()
          Returns the current position and state of the lexer.
 void restore(LexerPosition position)
          Restores the lexer to the specified state and position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.intellij.lexer.Lexer
advance, getBuffer, getBufferEnd, getState, getTokenEnd, getTokenStart, getTokenType, start, start, start
 

Constructor Detail

LexerBase

public LexerBase()
Method Detail

getCurrentPosition

public LexerPosition getCurrentPosition()
Description copied from interface: Lexer
Returns the current position and state of the lexer.

Specified by:
getCurrentPosition in interface Lexer
Returns:
the lexer position and state.

restore

public void restore(LexerPosition position)
Description copied from interface: Lexer
Restores the lexer to the specified state and position.

Specified by:
restore in interface Lexer
Parameters:
position - the state and position to restore to.