org.apache.directory.shared.ldap.name
Class antlrTypeLexer

java.lang.Object
  extended byantlr.CharScanner
      extended byorg.apache.directory.shared.ldap.name.antlrTypeLexer
All Implemented Interfaces:
antlrTypeTokenTypes, antlr.TokenStream
Direct Known Subclasses:
ReusableAntlrTypeLexer

public class antlrTypeLexer
extends antlr.CharScanner
implements antlrTypeTokenTypes, antlr.TokenStream

Lexer used to scan the attribute type character stream from the start of an attribute type to the equal sign. It implements the regular expressions (a.k.a lexer rules) for accepting a 'attributeType' as specified in RFC 2253. This class is generated from the antlr lexer definition file valuelexer.g.

Version:
$Revision: 1.2 $
Author:
Alex Karasulu, $Author: akarasulu $

Field Summary
static java.lang.String LEXER_KEY
          Lexer key for selector lookups
 
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.name.antlrTypeTokenTypes
ALPHA, ATTRIBUTE, CLOSE_BRACKET, COMMA, DIGIT, DN_TERMINATOR, EOF, EQUAL, NULL_TREE_LOOKAHEAD, OID, OIDDN, OPEN_BRACKET, PLUS, SEMI, WS
 
Constructor Summary
antlrTypeLexer(antlr.InputBuffer ib)
           
antlrTypeLexer(java.io.InputStream in)
           
antlrTypeLexer(antlr.LexerSharedInputState state)
           
antlrTypeLexer(java.io.Reader in)
           
 
Method Summary
protected  void mALPHA(boolean _createToken)
           
 void mATTRIBUTE(boolean _createToken)
           
protected  void mCLOSE_BRACKET(boolean _createToken)
           
protected  void mDIGIT(boolean _createToken)
           
 void mEQUAL(boolean _createToken)
           
 void mOID(boolean _createToken)
           
 void mOIDDN(boolean _createToken)
           
protected  void mOPEN_BRACKET(boolean _createToken)
           
 void mWS(boolean _createToken)
           
 antlr.Token nextToken()
           
 void setSelector(antlr.TokenStreamSelector a_selector)
          Sets the selector for this lexer.
 
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

LEXER_KEY

public static final java.lang.String LEXER_KEY
Lexer key for selector lookups

See Also:
Constant Field Values
Constructor Detail

antlrTypeLexer

public antlrTypeLexer(java.io.InputStream in)

antlrTypeLexer

public antlrTypeLexer(java.io.Reader in)

antlrTypeLexer

public antlrTypeLexer(antlr.InputBuffer ib)

antlrTypeLexer

public antlrTypeLexer(antlr.LexerSharedInputState state)
Method Detail

setSelector

public void setSelector(antlr.TokenStreamSelector a_selector)
Sets the selector for this lexer.

Parameters:
a_selector - the selector to use.

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

mALPHA

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

mOPEN_BRACKET

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

mCLOSE_BRACKET

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

mOIDDN

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

mOID

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

mATTRIBUTE

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

mWS

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

mEQUAL

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


Copyright © 2003-2006 . All Rights Reserved.