org.apache.directory.shared.ldap.subtree
Class ReusableAntlrSubtreeSpecificationLexer

java.lang.Object
  extended byantlr.CharScanner
      extended byorg.apache.directory.shared.ldap.subtree.AntlrSubtreeSpecificationLexer
          extended byorg.apache.directory.shared.ldap.subtree.ReusableAntlrSubtreeSpecificationLexer
All Implemented Interfaces:
AntlrSubtreeSpecificationParserTokenTypes, antlr.TokenStream

public class ReusableAntlrSubtreeSpecificationLexer
extends AntlrSubtreeSpecificationLexer

A reusable lexer class extended from antlr generated lexer for an LDAP subtree specification as defined by RFC 3672. This class enables the reuse of the antlr lexer without having to recreate the it every time as stated in a Antlr Interest Group mail .

Version:
$Rev: 379008 $
Author:
Apache Directory Project
See Also:
RFC 3672

Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.subtree.AntlrSubtreeSpecificationLexer
_tokenSet_0, _tokenSet_1
 
Fields inherited from class antlr.CharScanner
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepth
 
Fields inherited from interface org.apache.directory.shared.ldap.subtree.AntlrSubtreeSpecificationParserTokenTypes
ALPHA, CLOSE_CURLY, COLON, DESCR, DIGIT, DOT, EOF, ID_and, ID_base, ID_chopAfter, ID_chopBefore, ID_item, ID_maximum, ID_minimum, ID_not, ID_or, ID_specificationFilter, ID_specificExclusions, INTEGER, INTEGER_OR_NUMERICOID, LDIGIT, LITERAL_end, NULL_TREE_LOOKAHEAD, NUMERICOID, OPEN_CURLY, SAFEUTF8CHAR, SAFEUTF8STRING, SEP, SP
 
Constructor Summary
ReusableAntlrSubtreeSpecificationLexer(java.io.Reader in)
          Creates a ReusableAntlrSubtreeSpecificationLexer instance.
 
Method Summary
 void prepareNextInput(java.io.Reader in)
          Resets the state of an antlr lexer and initializes it with new input.
 
Methods inherited from class org.apache.directory.shared.ldap.subtree.AntlrSubtreeSpecificationLexer
mALPHA, mCLOSE_CURLY, mCOLON, mDESCR, mDIGIT, mDOT, mINTEGER_OR_NUMERICOID, mINTEGER, mLDIGIT, mNUMERICOID, mOPEN_CURLY, mSAFEUTF8CHAR, mSAFEUTF8STRING, mSEP, mSP, nextToken
 
Methods inherited from class antlr.CharScanner
append, append, commit, consume, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getTabSize, getText, getTokenObject, LA, makeToken, mark, match, match, match, matchNot, matchRange, newline, panic, panic, reportError, reportError, reportWarning, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setTabSize, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReusableAntlrSubtreeSpecificationLexer

public ReusableAntlrSubtreeSpecificationLexer(java.io.Reader in)
Creates a ReusableAntlrSubtreeSpecificationLexer instance.

Parameters:
in - the input to the lexer
Method Detail

prepareNextInput

public void prepareNextInput(java.io.Reader in)
Resets the state of an antlr lexer and initializes it with new input.

Parameters:
in - the input to the lexer


Copyright © 2003-2006 . All Rights Reserved.