|
||||||||||
| 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.api.ldap.model.name.AntlrDnParser
public class AntlrDnParser
An antlr generated Dn parser.
| Field Summary | |
|---|---|
static 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.api.ldap.model.name.AntlrDnTokenTypes |
|---|
ALPHA, 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, UTFMB |
| Constructor Summary | |
|---|---|
|
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)
|
| Method Summary | |
|---|---|
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 |
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) 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) DIGIT (0x30-0x39) ALPHA (0x41-0x5A and 0x61-0x7A) SHARP SPACE |
String |
utfmb()
|
| 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 String[] _tokenNames
public static final antlr.collections.impl.BitSet _tokenSet_0
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
public void setParserMonitor(ParserMonitor monitor)
public final void distinguishedName(Dn dn)
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final Rdn relativeDistinguishedName(Rdn initialRdn)
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final void relativeDistinguishedNames(List<Rdn> rdns)
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final String attributeTypeAndValue(Rdn rdn)
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final String attributeType()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final void attributeValue(org.apache.directory.api.ldap.model.name.AntlrDnParser.UpAndNormValue value)
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final String descr()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final String numericoid()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final void quotestring(org.apache.directory.api.ldap.model.name.AntlrDnParser.UpAndNormValue value)
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final void string(org.apache.directory.api.ldap.model.name.AntlrDnParser.UpAndNormValue value)
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final void hexstring(org.apache.directory.api.ldap.model.name.AntlrDnParser.UpAndNormValue value)
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final byte[] pair(org.apache.directory.api.ldap.model.name.AntlrDnParser.UpAndNormValue value)
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final String lutf1()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final String utfmb()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final String sutf1()
throws antlr.RecognitionException,
antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final String special()
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 | |||||||||