public class AntlrDnParser extends antlr.LLkParser implements AntlrDnTokenTypes
| Modifier and Type | Field and Description |
|---|---|
static String[] |
_tokenNames |
static antlr.collections.impl.BitSet |
_tokenSet_0 |
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepthALPHA, COMMA, DIGIT, DOT, DQUOTE, EOF, EQUALS, ESC, ESCESC, ESCSHARP, HEX, HEXPAIR, HEXPAIR_OR_ESCESC_ESCSHARP_OR_ESC, HEXVALUE, HEXVALUE_OR_SHARP, HYPHEN, LANGLE, LDIGIT, LUTF1_REST, NULL_TREE_LOOKAHEAD, NUMBER, NUMERICOID, NUMERICOID_OR_ALPHA_OR_DIGIT, PLUS, RANGLE, SEMI, SHARP, SPACE, UNDERSCORE, UTFMB| Modifier | Constructor and Description |
|---|---|
|
AntlrDnParser(antlr.ParserSharedInputState state) |
|
AntlrDnParser(antlr.TokenBuffer tokenBuf) |
protected |
AntlrDnParser(antlr.TokenBuffer tokenBuf,
int k) |
|
AntlrDnParser(antlr.TokenStream lexer) |
protected |
AntlrDnParser(antlr.TokenStream lexer,
int k) |
| Modifier and Type | Method and Description |
|---|---|
String |
attributeType()
RFC 4514 Section 3
attributeType = descr / numericoid
|
String |
attributeTypeAndValue(Rdn rdn)
RFC 4514, Section 3
attributeTypeAndValue = attributeType EQUALS attributeValue
RFC 2253, Section 3
attributeTypeAndValue = attributeType "=" attributeValue
|
void |
attributeValue(org.apache.directory.api.ldap.model.name.AntlrDnParser.UpAndNormValue value)
RFC 4514, Section 3
attributeValue = string / hexstring
RFC 2253, Section 3
attributeValue = string
string = *( stringchar / pair )
/ "#" hexstring
/ QUOTATION *( quotechar / pair ) QUOTATION ; only from v2
|
String |
descr()
RFC 4512 Section 1.4
descr = keystring
keystring = leadkeychar *keychar
leadkeychar = ALPHA
keychar = ALPHA / DIGIT / HYPHEN
We additionally add UNDERSCORE because some servers allow them.
|
void |
distinguishedName(Dn dn)
Parses an Dn string.
|
void |
hexstring(org.apache.directory.api.ldap.model.name.AntlrDnParser.UpAndNormValue value)
RFC 4514 Section 3
hexstring = SHARP 1*hexpair
If in
|
String |
lutf1()
RFC 4514, Section 3:
LUTF1 = %x01-1F / %x21 / %x24-2A / %x2D-3A /
%x3D / %x3F-5B / %x5D-7F
The rule LUTF1_REST doesn't contain the following charcters,
so we must check them additionally
EQUALS (0x3D)
HYPHEN (0x2D)
UNDERSCORE (0x5F)
DIGIT (0x30-0x39)
ALPHA (0x41-0x5A and 0x61-0x7A)
|
String |
numericoid()
RFC 4512 Section 1.4
numericoid = number 1*( DOT number )
number = DIGIT / ( LDIGIT 1*DIGIT )
DIGIT = %x30 / LDIGIT ; "0"-"9"
LDIGIT = %x31-39 ; "1"-"9"
|
byte[] |
pair(org.apache.directory.api.ldap.model.name.AntlrDnParser.UpAndNormValue value)
RFC 4514, Section 3
pair = ESC ( ESC / special / hexpair )
special = escaped / SPACE / SHARP / EQUALS
escaped = DQUOTE / PLUS / COMMA / SEMI / LANGLE / RANGLE
hexpair = HEX HEX
If in
|
void |
quotestring(org.apache.directory.api.ldap.model.name.AntlrDnParser.UpAndNormValue value)
RFC 2253, Section 3
/ QUOTATION *( quotechar / pair ) QUOTATION ; only from v2
quotechar =
|
Rdn |
relativeDistinguishedName(Rdn initialRdn)
Parses an Rdn string.
|
void |
relativeDistinguishedNames(List<Rdn> rdns)
Parses an Dn string.
|
void |
setParserMonitor(ParserMonitor monitor) |
String |
special()
RFC 4514 Section 3
special = escaped / SPACE / SHARP / EQUALS
escaped = DQUOTE / PLUS / COMMA / SEMI / LANGLE / RANGLE
|
void |
string(org.apache.directory.api.ldap.model.name.AntlrDnParser.UpAndNormValue value)
RFC 4514 Section 3
; The following characters are to be escaped when they appear
; in the value to be encoded: ESC, one of
|
String |
sutf1()
RFC 4514, Section 3:
SUTF1 = %x01-21 / %x23-2A / %x2D-3A /
%x3D / %x3F-5B / %x5D-7F
The rule LUTF1_REST doesn't contain the following charcters,
so we must check them additionally
EQUALS (0x3D)
HYPHEN (0x2D)
UNDERSCORE (0x5F)
DIGIT (0x30-0x39)
ALPHA (0x41-0x5A and 0x61-0x7A)
SHARP
SPACE
|
String |
utfmb() |
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, traceIndentpublic static final String[] _tokenNames
public static final antlr.collections.impl.BitSet _tokenSet_0
protected AntlrDnParser(antlr.TokenBuffer tokenBuf,
int k)
public AntlrDnParser(antlr.TokenBuffer tokenBuf)
protected AntlrDnParser(antlr.TokenStream lexer,
int k)
public AntlrDnParser(antlr.TokenStream lexer)
public AntlrDnParser(antlr.ParserSharedInputState state)
public void setParserMonitor(ParserMonitor monitor)
public final void distinguishedName(Dn dn) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final Rdn relativeDistinguishedName(Rdn initialRdn) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final void relativeDistinguishedNames(List<Rdn> rdns) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final String attributeTypeAndValue(Rdn rdn) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final String attributeType() throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final void attributeValue(org.apache.directory.api.ldap.model.name.AntlrDnParser.UpAndNormValue value)
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final String descr() throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final String numericoid() throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final void quotestring(org.apache.directory.api.ldap.model.name.AntlrDnParser.UpAndNormValue value)
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final void string(org.apache.directory.api.ldap.model.name.AntlrDnParser.UpAndNormValue value)
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final void hexstring(org.apache.directory.api.ldap.model.name.AntlrDnParser.UpAndNormValue value)
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final byte[] pair(org.apache.directory.api.ldap.model.name.AntlrDnParser.UpAndNormValue value)
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final String lutf1() throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final String utfmb() throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final String sutf1() throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionpublic final String special() throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionExceptionantlr.TokenStreamExceptionCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.