public class AntlrSchemaParser extends antlr.LLkParser implements AntlrSchemaTokenTypes
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
AntlrSchemaParser.ElementTracker |
(package private) static class |
AntlrSchemaParser.Extension |
(package private) static class |
AntlrSchemaParser.NoidLen |
| Modifier and Type | Field and Description |
|---|---|
static String[] |
_tokenNames |
private boolean |
isQuirksModeEnabled |
private ParserMonitor |
monitor |
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepthABSTRACT, APPLIES, ATTRIBUTETYPE, AUX, AUX_OR_AUXILIARY, AUXILIARY, BYTECODE, BYTECODE_VALUE, COLLECTIVE, DESC, DIRECTORY_OPERATION, DISTRIBUTED_OPERATION, DOLLAR, DSA_OPERATION, EOF, EQUALITY, EXTENSION, FORM, FQCN, FQCN_IDENTIFIER, FQCN_LETTER, FQCN_LETTERORDIGIT, FQCN_VALUE, LBRACKET, LEN, LPAR, MAY, MUST, NAME, NO_USER_MODIFICATION, NOT, NULL_TREE_LOOKAHEAD, OBJECTCLASS, OBJECTIDENTIFIER, OBSOLETE, OC, ORDERING, QUOTE, QUOTED_STRING, RBRACKET, RPAR, SINGLE_VALUE, STARTNUMERICOID, STRUCTURAL, SUBSTR, SUP, SYNTAX, UNQUOTED_STRING, USAGE, USER_APPLICATIONS, VALUE, VALUES, WHSP| Modifier | Constructor and Description |
|---|---|
|
AntlrSchemaParser(antlr.ParserSharedInputState state) |
|
AntlrSchemaParser(antlr.TokenBuffer tokenBuf) |
protected |
AntlrSchemaParser(antlr.TokenBuffer tokenBuf,
int k) |
|
AntlrSchemaParser(antlr.TokenStream lexer) |
protected |
AntlrSchemaParser(antlr.TokenStream lexer,
int k) |
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, traceIndentprivate ParserMonitor monitor
private boolean isQuirksModeEnabled
public static final String[] _tokenNames
protected AntlrSchemaParser(antlr.TokenBuffer tokenBuf,
int k)
public AntlrSchemaParser(antlr.TokenBuffer tokenBuf)
protected AntlrSchemaParser(antlr.TokenStream lexer,
int k)
public AntlrSchemaParser(antlr.TokenStream lexer)
public AntlrSchemaParser(antlr.ParserSharedInputState state)
public void setParserMonitor(ParserMonitor monitor)
private void matchedProduction(String msg)
public void setQuirksMode(boolean enabled)
public boolean isQuirksMode()
public final List<Object> openLdapSchema() throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final OpenLdapObjectIdentifierMacro openLdapObjectIdentifier() throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final AttributeType openLdapAttributeType() throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final ObjectClass openLdapObjectClass() throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final MutableObjectClass objectClassDescription() throws antlr.RecognitionException, antlr.TokenStreamException
ObjectClassDescription = LPAREN WSP
numericoid ; object identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
[ SP "SUP" SP oids ] ; superior object classes
[ SP kind ] ; kind of class
[ SP "MUST" SP oids ] ; attribute types
[ SP "MAY" SP oids ] ; attribute types
extensions WSP RPAREN
kind = "ABSTRACT" / "STRUCTURAL" / "AUXILIARY"
extensions = *( SP xstring SP qdstrings )
xstring = "X" HYPHEN 1*( ALPHA / HYPHEN / USCORE )
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final MutableAttributeType attributeTypeDescription() throws antlr.RecognitionException, antlr.TokenStreamException
AttributeTypeDescription = LPAREN WSP
numericoid ; object identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
[ SP "SUP" SP oid ] ; supertype
[ SP "EQUALITY" SP oid ] ; equality matching rule
[ SP "ORDERING" SP oid ] ; ordering matching rule
[ SP "SUBSTR" SP oid ] ; substrings matching rule
[ SP "SYNTAX" SP noidlen ] ; value syntax
[ SP "SINGLE-VALUE" ] ; single-value
[ SP "COLLECTIVE" ] ; collective
[ SP "NO-USER-MODIFICATION" ] ; not user modifiable
[ SP "USAGE" SP usage ] ; usage
extensions WSP RPAREN ; extensions
usage = "userApplications" / ; user
"directoryOperation" / ; directory operational
"distributedOperation" / ; DSA-shared operational
"dSAOperation" ; DSA-specific operational
extensions = *( SP xstring SP qdstrings )
xstring = "X" HYPHEN 1*( ALPHA / HYPHEN / USCORE )
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final LdapSyntax ldapSyntaxDescription() throws antlr.RecognitionException, antlr.TokenStreamException
SyntaxDescription = LPAREN WSP
numericoid ; object identifier
[ SP "DESC" SP qdstring ] ; description
extensions WSP RPAREN ; extensions
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final MutableMatchingRule matchingRuleDescription() throws antlr.RecognitionException, antlr.TokenStreamException
MatchingRuleDescription = LPAREN WSP
numericoid ; object identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
SP "SYNTAX" SP numericoid ; assertion syntax
extensions WSP RPAREN ; extensions
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final MatchingRuleUse matchingRuleUseDescription() throws antlr.RecognitionException, antlr.TokenStreamException
MatchingRuleUseDescription = LPAREN WSP
numericoid ; object identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
SP "APPLIES" SP oids ; attribute types
extensions WSP RPAREN ; extensions
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final DitContentRule ditContentRuleDescription() throws antlr.RecognitionException, antlr.TokenStreamException
DITContentRuleDescription = LPAREN WSP
numericoid ; object identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
[ SP "AUX" SP oids ] ; auxiliary object classes
[ SP "MUST" SP oids ] ; attribute types
[ SP "MAY" SP oids ] ; attribute types
[ SP "NOT" SP oids ] ; attribute types
extensions WSP RPAREN ; extensions
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final DitStructureRule ditStructureRuleDescription() throws antlr.RecognitionException, antlr.TokenStreamException
DITStructureRuleDescription = LPAREN WSP ruleid ; rule identifier [ SP "NAME" SP qdescrs ] ; short names (descriptors) [ SP "DESC" SP qdstring ] ; description [ SP "OBSOLETE" ] ; not active SP "FORM" SP oid ; NameForm [ SP "SUP" ruleids ] ; superior rules extensions WSP RPAREN ; extensions ruleids = ruleid / ( LPAREN WSP ruleidlist WSP RPAREN ) ruleidlist = ruleid *( SP ruleid ) ruleid = number
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final NameForm nameFormDescription() throws antlr.RecognitionException, antlr.TokenStreamException
NameFormDescription = LPAREN WSP
numericoid ; object identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
SP "OC" SP oid ; structural object class
SP "MUST" SP oids ; attribute types
[ SP "MAY" SP oids ] ; attribute types
extensions WSP RPAREN ; extensions
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final LdapComparatorDescription ldapComparator() throws antlr.RecognitionException, antlr.TokenStreamException
LdapComparator = LPAREN WSP
numericoid ; object identifier
[ SP "DESC" SP qdstring ] ; description
SP "FQCN" SP fqcn ; fully qualified class name
[ SP "BYTECODE" SP base64 ] ; optional base64 encoded bytecode
extensions WSP RPAREN ; extensions
base64 = *(4base64-char)
base64-char = ALPHA / DIGIT / "+" / "/"
fqcn = fqcnComponent 1*( DOT fqcnComponent )
fqcnComponent = ???
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final NormalizerDescription normalizerDescription() throws antlr.RecognitionException, antlr.TokenStreamException
NormalizerDescription = LPAREN WSP
numericoid ; object identifier
[ SP "DESC" SP qdstring ] ; description
SP "FQCN" SP fqcn ; fully qualified class name
[ SP "BYTECODE" SP base64 ] ; optional base64 encoded bytecode
extensions WSP RPAREN ; extensions
base64 = *(4base64-char)
base64-char = ALPHA / DIGIT / "+" / "/"
fqcn = fqcnComponent 1*( DOT fqcnComponent )
fqcnComponent = ???
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final SyntaxCheckerDescription syntaxCheckerDescription() throws antlr.RecognitionException, antlr.TokenStreamException
SyntaxCheckerDescription = LPAREN WSP
numericoid ; object identifier
[ SP "DESC" SP qdstring ] ; description
SP "FQCN" SP fqcn ; fully qualified class name
[ SP "BYTECODE" SP base64 ] ; optional base64 encoded bytecode
extensions WSP RPAREN ; extensions
base64 = *(4base64-char)
base64-char = ALPHA / DIGIT / "+" / "/"
fqcn = fqcnComponent 1*( DOT fqcnComponent )
fqcnComponent = ???
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final AntlrSchemaParser.NoidLen noidlen(String s) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final AntlrSchemaParser.Extension extension(String s) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final String numericoid(String s) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final String oid(String s) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final List<String> oids(String s) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final String qdescr(String s) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final List<String> qdescrs(String s) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final String qdstring(String s) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final List<String> qdstrings(String s) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final Integer ruleid(String s) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.