org.apache.directory.shared.ldap.name
Class antlrValueLexer
java.lang.Object
antlr.CharScanner
org.apache.directory.shared.ldap.name.antlrValueLexer
- All Implemented Interfaces:
- antlrValueTokenTypes, antlr.TokenStream
- Direct Known Subclasses:
- ReusableAntlrValueLexer
- public class antlrValueLexer
- extends antlr.CharScanner
- implements antlrValueTokenTypes, antlr.TokenStream
Lexer used to scan the attribute value character stream from an equal sign
in the name-component to the next comma, semicolon, or plus sign (if the
RDN is multivalued). It implements the regular expressions (a.k.a lexer
rules) for accepting a 'value' as specified in
RFC 2253. This class
is generated from the antlr lexer definition file valuelexer.g.
- Version:
- $Revision: 1.3 $
- Author:
- Alex Karasulu, $Author: akarasulu $
Field Summary |
static antlr.collections.impl.BitSet |
_tokenSet_0
|
static antlr.collections.impl.BitSet |
_tokenSet_1
|
static antlr.collections.impl.BitSet |
_tokenSet_2
|
static java.lang.String |
LEXER_KEY
Constant referenced by type lexer for pushes |
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.antlrValueTokenTypes |
ALPHA, COMMA, DIGIT, DN_TERMINATOR, EOF, EQUAL, ESCAPED_CHAR, HEX_STRING, HEXCHAR, HEXPAIR, NULL_TREE_LOOKAHEAD, PLUS, QUOTED_STRING, SEMI, SIMPLE_STRING |
Method Summary |
protected void |
mALPHA(boolean _createToken)
|
void |
mCOMMA(boolean _createToken)
|
protected void |
mDIGIT(boolean _createToken)
|
void |
mDN_TERMINATOR(boolean _createToken)
Must pop the stack to revert back to the type lexer for the
next distinguished name parse. |
void |
mESCAPED_CHAR(boolean _createToken)
|
void |
mHEX_STRING(boolean _createToken)
|
protected void |
mHEXCHAR(boolean _createToken)
|
protected void |
mHEXPAIR(boolean _createToken)
|
void |
mPLUS(boolean _createToken)
|
void |
mQUOTED_STRING(boolean _createToken)
|
void |
mSEMI(boolean _createToken)
|
void |
mSIMPLE_STRING(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 |
LEXER_KEY
public static final java.lang.String LEXER_KEY
- Constant referenced by type lexer for pushes
- 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
antlrValueLexer
public antlrValueLexer(java.io.InputStream in)
antlrValueLexer
public antlrValueLexer(java.io.Reader in)
antlrValueLexer
public antlrValueLexer(antlr.InputBuffer ib)
antlrValueLexer
public antlrValueLexer(antlr.LexerSharedInputState state)
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
mHEXCHAR
protected final void mHEXCHAR(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mHEXPAIR
protected final void mHEXPAIR(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mESCAPED_CHAR
public final void mESCAPED_CHAR(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mHEX_STRING
public final void mHEX_STRING(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mQUOTED_STRING
public final void mQUOTED_STRING(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mSIMPLE_STRING
public final void mSIMPLE_STRING(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mCOMMA
public final void mCOMMA(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mSEMI
public final void mSEMI(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mPLUS
public final void mPLUS(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mDN_TERMINATOR
public final void mDN_TERMINATOR(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Must pop the stack to revert back to the type lexer for the
next distinguished name parse.
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
Copyright © 2003-2006 . All Rights Reserved.