Class ReusableAntlrTriggerSpecificationLexer
- java.lang.Object
-
- antlr.CharScanner
-
- org.apache.directory.api.ldap.trigger.AntlrTriggerSpecificationLexer
-
- org.apache.directory.api.ldap.trigger.ReusableAntlrTriggerSpecificationLexer
-
- All Implemented Interfaces:
antlr.TokenStream,AntlrTriggerSpecificationParserTokenTypes
class ReusableAntlrTriggerSpecificationLexer extends AntlrTriggerSpecificationLexer
A reusable lexer class extended from antlr generated lexer for an LDAP Trigger Specification as defined at The ABNF grammar for LDAP Triggers.This class enables the reuse of the antlr lexer without having to recreate the it every time as stated in an ANTLR Interest Group mail .
- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from class org.apache.directory.api.ldap.trigger.AntlrTriggerSpecificationLexer
_tokenSet_0, _tokenSet_1, _tokenSet_2
-
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.api.ldap.trigger.AntlrTriggerSpecificationParserTokenTypes
ALPHA, CLOSE_CURLY, CLOSE_PARAN, COMMENT, DOT, EOF, ID_add, ID_AFTER, ID_attributes, ID_CALL, ID_delete, ID_deletedEntry, ID_deleteoldrdn, ID_entry, ID_languageScheme, ID_ldapContext, ID_modification, ID_modify, ID_modifyDN, ID_modifyDNExport, ID_modifyDNImport, ID_modifyDNRename, ID_name, ID_newDN, ID_newEntry, ID_newrdn, ID_newSuperior, ID_object, ID_oldEntry, ID_oldRDN, ID_oldSuperiorDN, ID_operationPrincipal, ID_scope_base, ID_scope_one, ID_scope_subtree, ID_search_scope, ID_searchContext, IDENTIFIER, NULL_TREE_LOOKAHEAD, OPEN_CURLY, OPEN_PARAN, SAFEUTF8CHAR, SEMI, SEP, SP, UTF8String
-
-
Constructor Summary
Constructors Constructor Description ReusableAntlrTriggerSpecificationLexer(Reader in)Creates a ReusableAntlrTriggerSpecificationLexer instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprepareNextInput(Reader in)Resets the state of an antlr lexer and initializes it with new input.-
Methods inherited from class org.apache.directory.api.ldap.trigger.AntlrTriggerSpecificationLexer
mALPHA, mCLOSE_CURLY, mCLOSE_PARAN, mCOMMENT, mDOT, mIDENTIFIER, mOPEN_CURLY, mOPEN_PARAN, mSAFEUTF8CHAR, mSEMI, mSEP, mSP, mUTF8String, 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
-
-
-
-
Constructor Detail
-
ReusableAntlrTriggerSpecificationLexer
ReusableAntlrTriggerSpecificationLexer(Reader in)
Creates a ReusableAntlrTriggerSpecificationLexer instance.- Parameters:
in- the input to the lexer
-
-
Method Detail
-
prepareNextInput
public void prepareNextInput(Reader in)
Resets the state of an antlr lexer and initializes it with new input.- Parameters:
in- the input to the lexer
-
-