org.apache.directory.shared.ldap.filter
Class AntlrFilterValueLexer

java.lang.Object
  extended byantlr.CharScanner
      extended byorg.apache.directory.shared.ldap.filter.AntlrFilterValueLexer
All Implemented Interfaces:
FilterValueLexerTokenTypes, antlr.TokenStream

public class AntlrFilterValueLexer
extends antlr.CharScanner
implements FilterValueLexerTokenTypes, antlr.TokenStream

A lexer for LDAP search filter value encodings as defined by the ldapbis draft describing the string representation of search filters. This lexer is rather complex supporting the complete encoding with unicode support. We have separated it into its own lexer and intend to use it in a TokenStreamSelector to multiplex lexical states in a parser.

Author:
Alex Karasulu
See Also:
String Representation of Search Filters

Field Summary
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
static antlr.collections.impl.BitSet _tokenSet_2
           
static antlr.collections.impl.BitSet _tokenSet_3
           
static java.lang.String SELECTOR_KEY
          the selector key used by this class of lexer
 
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.filter.FilterValueLexerTokenTypes
AMPERSAND, ASTERISK, COLON, DIGIT, EOF, ESC, ESCAPED, EXCLAMATION, HEXDIG, LPAREN, NORMAL, NULL_TREE_LOOKAHEAD, RPAREN, TILDE, UTF0, UTF1, UTF1SUBSET, UTF2, UTF3, UTF4, UTF8, UTFMB, VALUEENCODING, VERTBAR
 
Constructor Summary
AntlrFilterValueLexer(antlr.InputBuffer ib)
           
AntlrFilterValueLexer(java.io.InputStream in)
           
AntlrFilterValueLexer(antlr.LexerSharedInputState state)
           
AntlrFilterValueLexer(java.io.Reader in)
           
 
Method Summary
protected  void mAMPERSAND(boolean _createToken)
           
 void mASTERISK(boolean _createToken)
           
protected  void mCOLON(boolean _createToken)
           
protected  void mDIGIT(boolean _createToken)
           
protected  void mESC(boolean _createToken)
           
protected  void mESCAPED(boolean _createToken)
           
protected  void mEXCLAMATION(boolean _createToken)
           
protected  void mHEXDIG(boolean _createToken)
           
 void mLPAREN(boolean _createToken)
           
protected  void mNORMAL(boolean _createToken)
           
 void mRPAREN(boolean _createToken)
           
protected  void mTILDE(boolean _createToken)
           
protected  void mUTF0(boolean _createToken)
           
protected  void mUTF1(boolean _createToken)
           
protected  void mUTF1SUBSET(boolean _createToken)
           
protected  void mUTF2(boolean _createToken)
           
protected  void mUTF3(boolean _createToken)
           
protected  void mUTF4(boolean _createToken)
           
protected  void mUTF8(boolean _createToken)
           
protected  void mUTFMB(boolean _createToken)
           
 void mVALUEENCODING(boolean _createToken)
           
protected  void mVERTBAR(boolean _createToken)
           
 antlr.Token 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
 

Field Detail

SELECTOR_KEY

public static final java.lang.String SELECTOR_KEY
the selector key used by this class of lexer

See Also:
Constant Field Values

_tokenSet_0

public static final antlr.collections.impl.BitSet _tokenSet_0

_tokenSet_1

public static final antlr.collections.impl.BitSet _tokenSet_1

_tokenSet_2

public static final antlr.collections.impl.BitSet _tokenSet_2

_tokenSet_3

public static final antlr.collections.impl.BitSet _tokenSet_3
Constructor Detail

AntlrFilterValueLexer

public AntlrFilterValueLexer(java.io.InputStream in)

AntlrFilterValueLexer

public AntlrFilterValueLexer(java.io.Reader in)

AntlrFilterValueLexer

public AntlrFilterValueLexer(antlr.InputBuffer ib)

AntlrFilterValueLexer

public AntlrFilterValueLexer(antlr.LexerSharedInputState state)
Method Detail

nextToken

public antlr.Token nextToken()
                      throws antlr.TokenStreamException
Specified by:
nextToken in interface antlr.TokenStream
Throws:
antlr.TokenStreamException

mDIGIT

protected final void mDIGIT(boolean _createToken)
                     throws antlr.RecognitionException,
                            antlr.CharStreamException,
                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mHEXDIG

protected final void mHEXDIG(boolean _createToken)
                      throws antlr.RecognitionException,
                             antlr.CharStreamException,
                             antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mVALUEENCODING

public final void mVALUEENCODING(boolean _createToken)
                          throws antlr.RecognitionException,
                                 antlr.CharStreamException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mNORMAL

protected final void mNORMAL(boolean _createToken)
                      throws antlr.RecognitionException,
                             antlr.CharStreamException,
                             antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mESCAPED

protected final void mESCAPED(boolean _createToken)
                       throws antlr.RecognitionException,
                              antlr.CharStreamException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mUTF1SUBSET

protected final void mUTF1SUBSET(boolean _createToken)
                          throws antlr.RecognitionException,
                                 antlr.CharStreamException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mUTFMB

protected final void mUTFMB(boolean _createToken)
                     throws antlr.RecognitionException,
                            antlr.CharStreamException,
                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mESC

protected final void mESC(boolean _createToken)
                   throws antlr.RecognitionException,
                          antlr.CharStreamException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mEXCLAMATION

protected final void mEXCLAMATION(boolean _createToken)
                           throws antlr.RecognitionException,
                                  antlr.CharStreamException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mAMPERSAND

protected final void mAMPERSAND(boolean _createToken)
                         throws antlr.RecognitionException,
                                antlr.CharStreamException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mASTERISK

public final void mASTERISK(boolean _createToken)
                     throws antlr.RecognitionException,
                            antlr.CharStreamException,
                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mLPAREN

public final void mLPAREN(boolean _createToken)
                   throws antlr.RecognitionException,
                          antlr.CharStreamException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mRPAREN

public final void mRPAREN(boolean _createToken)
                   throws antlr.RecognitionException,
                          antlr.CharStreamException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mCOLON

protected final void mCOLON(boolean _createToken)
                     throws antlr.RecognitionException,
                            antlr.CharStreamException,
                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mVERTBAR

protected final void mVERTBAR(boolean _createToken)
                       throws antlr.RecognitionException,
                              antlr.CharStreamException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mTILDE

protected final void mTILDE(boolean _createToken)
                     throws antlr.RecognitionException,
                            antlr.CharStreamException,
                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mUTF8

protected final void mUTF8(boolean _createToken)
                    throws antlr.RecognitionException,
                           antlr.CharStreamException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mUTF1

protected final void mUTF1(boolean _createToken)
                    throws antlr.RecognitionException,
                           antlr.CharStreamException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mUTF2

protected final void mUTF2(boolean _createToken)
                    throws antlr.RecognitionException,
                           antlr.CharStreamException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mUTF3

protected final void mUTF3(boolean _createToken)
                    throws antlr.RecognitionException,
                           antlr.CharStreamException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mUTF4

protected final void mUTF4(boolean _createToken)
                    throws antlr.RecognitionException,
                           antlr.CharStreamException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mUTF0

protected final void mUTF0(boolean _createToken)
                    throws antlr.RecognitionException,
                           antlr.CharStreamException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException


Copyright © 2003-2006 . All Rights Reserved.