org.apache.directory.api.ldap.model.schema.syntaxes
Class AntlrSchemaValueParser

java.lang.Object
  extended by antlr.Parser
      extended by antlr.LLkParser
          extended by org.apache.directory.api.ldap.model.schema.syntaxes.AntlrSchemaValueParser
All Implemented Interfaces:
AntlrSchemaValueTokenTypes

public class AntlrSchemaValueParser
extends antlr.LLkParser
implements AntlrSchemaValueTokenTypes

An antlr generated schema parser. This is a sub-parser used to parse numericoid, oid, oids, qdescr, qdescrs according to RFC4512.

Author:
Apache Directory Project

Field Summary
static String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
static antlr.collections.impl.BitSet _tokenSet_2
           
static antlr.collections.impl.BitSet _tokenSet_3
           
static antlr.collections.impl.BitSet _tokenSet_4
           
static antlr.collections.impl.BitSet _tokenSet_5
           
static antlr.collections.impl.BitSet _tokenSet_6
           
static antlr.collections.impl.BitSet _tokenSet_7
           
static antlr.collections.impl.BitSet _tokenSet_8
           
 
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
 
Fields inherited from interface org.apache.directory.api.ldap.model.schema.syntaxes.AntlrSchemaValueTokenTypes
CHAR, DESCR, DESCR_OR_QUIRKS_DESCR, DIGIT, DOLLAR, EOF, HYPEN, LCURLY, LDIGIT, LEN, LPAR, NULL_TREE_LOOKAHEAD, NUMBER, NUMBER2, NUMERICOID, OTHER, QUIRKS_DESCR, QUOTE, RCURLY, RPAR, WHSP
 
Constructor Summary
  AntlrSchemaValueParser(antlr.ParserSharedInputState state)
           
  AntlrSchemaValueParser(antlr.TokenBuffer tokenBuf)
           
protected AntlrSchemaValueParser(antlr.TokenBuffer tokenBuf, int k)
           
  AntlrSchemaValueParser(antlr.TokenStream lexer)
           
protected AntlrSchemaValueParser(antlr.TokenStream lexer, int k)
           
 
Method Summary
 org.apache.directory.api.ldap.model.schema.syntaxes.AntlrSchemaParser.NoidLen noidlen()
          noidlen = numericoid [ LCURLY len RCURLY ] len = number
 String numericoid()
          numericoid = number 1*( DOT number )
 String oid()
          oid = descr / numericoid numericoid = number 1*( DOT number ) descr = keystring keystring = leadkeychar *keychar leadkeychar = ALPHA keychar = ALPHA / DIGIT / HYPHEN number = DIGIT / ( LDIGIT 1*DIGIT )
 List<String> oids()
          oids = oid / ( LPAREN WSP oidlist WSP RPAREN ) oidlist = oid *( WSP DOLLAR WSP oid )
 String qdescr()
          qdescr = SQUOTE descr SQUOTE
 List<String> qdescrs()
          qdescrs = qdescr / ( LPAREN WSP qdescrlist WSP RPAREN ) qdescrlist = [ qdescr *( SP qdescr ) ]
 org.apache.directory.api.ldap.model.schema.syntaxes.AntlrSchemaParser.NoidLen quirksNoidlen()
          noidlen = numericoid [ LCURLY len RCURLY ] len = number
 String quirksQdescr()
          qdescr = SQUOTE descr SQUOTE
 List<String> quirksQdescrs()
          qdescrs = qdescr / ( LPAREN WSP qdescrlist WSP RPAREN ) qdescrlist = [ qdescr *( SP qdescr ) ]
 Integer ruleid()
          ruleid = number number = DIGIT / ( LDIGIT 1*DIGIT )
 List<Integer> ruleids()
          ruleids = ruleid / ( LPAREN WSP ruleidlist WSP RPAREN ) ruleidlist = ruleid *( SP ruleid )
 void setParserMonitor(ParserMonitor monitor)
           
 
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

_tokenNames

public static final String[] _tokenNames

_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

_tokenSet_3

public static final antlr.collections.impl.BitSet _tokenSet_3

_tokenSet_4

public static final antlr.collections.impl.BitSet _tokenSet_4

_tokenSet_5

public static final antlr.collections.impl.BitSet _tokenSet_5

_tokenSet_6

public static final antlr.collections.impl.BitSet _tokenSet_6

_tokenSet_7

public static final antlr.collections.impl.BitSet _tokenSet_7

_tokenSet_8

public static final antlr.collections.impl.BitSet _tokenSet_8
Constructor Detail

AntlrSchemaValueParser

protected AntlrSchemaValueParser(antlr.TokenBuffer tokenBuf,
                                 int k)

AntlrSchemaValueParser

public AntlrSchemaValueParser(antlr.TokenBuffer tokenBuf)

AntlrSchemaValueParser

protected AntlrSchemaValueParser(antlr.TokenStream lexer,
                                 int k)

AntlrSchemaValueParser

public AntlrSchemaValueParser(antlr.TokenStream lexer)

AntlrSchemaValueParser

public AntlrSchemaValueParser(antlr.ParserSharedInputState state)
Method Detail

setParserMonitor

public void setParserMonitor(ParserMonitor monitor)

noidlen

public final org.apache.directory.api.ldap.model.schema.syntaxes.AntlrSchemaParser.NoidLen noidlen()
                                                                                            throws antlr.RecognitionException,
                                                                                                   antlr.TokenStreamException
noidlen = numericoid [ LCURLY len RCURLY ] len = number

Throws:
antlr.RecognitionException
antlr.TokenStreamException

quirksNoidlen

public final org.apache.directory.api.ldap.model.schema.syntaxes.AntlrSchemaParser.NoidLen quirksNoidlen()
                                                                                                  throws antlr.RecognitionException,
                                                                                                         antlr.TokenStreamException
noidlen = numericoid [ LCURLY len RCURLY ] len = number

Throws:
antlr.RecognitionException
antlr.TokenStreamException

numericoid

public final String numericoid()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
numericoid = number 1*( DOT number )

Throws:
antlr.RecognitionException
antlr.TokenStreamException

oid

public final String oid()
                 throws antlr.RecognitionException,
                        antlr.TokenStreamException
oid = descr / numericoid numericoid = number 1*( DOT number ) descr = keystring keystring = leadkeychar *keychar leadkeychar = ALPHA keychar = ALPHA / DIGIT / HYPHEN number = DIGIT / ( LDIGIT 1*DIGIT )

Throws:
antlr.RecognitionException
antlr.TokenStreamException

oids

public final List<String> oids()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
oids = oid / ( LPAREN WSP oidlist WSP RPAREN ) oidlist = oid *( WSP DOLLAR WSP oid )

Throws:
antlr.RecognitionException
antlr.TokenStreamException

qdescr

public final String qdescr()
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException
qdescr = SQUOTE descr SQUOTE

Throws:
antlr.RecognitionException
antlr.TokenStreamException

qdescrs

public final List<String> qdescrs()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
qdescrs = qdescr / ( LPAREN WSP qdescrlist WSP RPAREN ) qdescrlist = [ qdescr *( SP qdescr ) ]

Throws:
antlr.RecognitionException
antlr.TokenStreamException

quirksQdescr

public final String quirksQdescr()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
qdescr = SQUOTE descr SQUOTE

Throws:
antlr.RecognitionException
antlr.TokenStreamException

quirksQdescrs

public final List<String> quirksQdescrs()
                                 throws antlr.RecognitionException,
                                        antlr.TokenStreamException
qdescrs = qdescr / ( LPAREN WSP qdescrlist WSP RPAREN ) qdescrlist = [ qdescr *( SP qdescr ) ]

Throws:
antlr.RecognitionException
antlr.TokenStreamException

ruleid

public final Integer ruleid()
                     throws antlr.RecognitionException,
                            antlr.TokenStreamException
ruleid = number number = DIGIT / ( LDIGIT 1*DIGIT )

Throws:
antlr.RecognitionException
antlr.TokenStreamException

ruleids

public final List<Integer> ruleids()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
ruleids = ruleid / ( LPAREN WSP ruleidlist WSP RPAREN ) ruleidlist = ruleid *( SP ruleid )

Throws:
antlr.RecognitionException
antlr.TokenStreamException


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.