|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectantlr.Parser
antlr.LLkParser
org.apache.directory.shared.ldap.filter.AntlrFilterValueParser
A filter assertion value encoding parser. This parser is used by the top filter parser to handle equality, extensible, presence and substring assertion values. It also participates in multiplexing the underlying token stream by driving filter assertion value lexer.
Field Summary | |
static java.lang.String[] |
_tokenNames
|
static antlr.collections.impl.BitSet |
_tokenSet_0
|
Fields inherited from class antlr.Parser |
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth |
Fields inherited from interface org.apache.directory.shared.ldap.filter.AntlrFilterValueParserTokenTypes |
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 | |
|
AntlrFilterValueParser(antlr.ParserSharedInputState state)
|
|
AntlrFilterValueParser(antlr.TokenBuffer tokenBuf)
|
protected |
AntlrFilterValueParser(antlr.TokenBuffer tokenBuf,
int k)
|
|
AntlrFilterValueParser(antlr.TokenStream lexer)
|
protected |
AntlrFilterValueParser(antlr.TokenStream lexer,
int k)
|
Method Summary | |
java.lang.String |
equal()
Parser production that parses the equality expression value immediately after the '=' in a filter equality assertion. |
PresenceNode |
presence(java.lang.String attribute)
Parser production that parses the presence expressions immediately after the '=' in a presence assertion. |
void |
setFilterParserMonitor(FilterParserMonitor monitor)
Sets the monitor used to track the activities of this parser. |
void |
setLexer(AntlrFilterLexer lexer)
Sets the filter's main lexer so we can switch back to it. |
void |
setSelector(antlr.TokenStreamSelector selector)
Sets the token stream select so we can use it to switch to the filter parsers primary lexer. |
LeafNode |
substring(java.lang.String attribute)
Parser production that parses the substring expression value immediately after the '=' in a substring filter assertion. |
java.lang.Object |
value(java.lang.String attribute)
Parser production that calls either equal, presence or substring productions. |
Methods inherited from class antlr.LLkParser |
consume, LA, LT, traceIn, traceOut |
Methods inherited from class antlr.Parser |
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String[] _tokenNames
public static final antlr.collections.impl.BitSet _tokenSet_0
Constructor Detail |
protected AntlrFilterValueParser(antlr.TokenBuffer tokenBuf, int k)
public AntlrFilterValueParser(antlr.TokenBuffer tokenBuf)
protected AntlrFilterValueParser(antlr.TokenStream lexer, int k)
public AntlrFilterValueParser(antlr.TokenStream lexer)
public AntlrFilterValueParser(antlr.ParserSharedInputState state)
Method Detail |
public void setSelector(antlr.TokenStreamSelector selector)
selector
- the token stream selector for the filter parserpublic void setLexer(AntlrFilterLexer lexer)
lexer
- the primary lexer used by the filter parserpublic void setFilterParserMonitor(FilterParserMonitor monitor)
monitor
- used to track the activities of this parserpublic final java.lang.Object value(java.lang.String attribute) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final java.lang.String equal() throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final PresenceNode presence(java.lang.String attribute) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final LeafNode substring(java.lang.String attribute) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |