public class ACIItemParser extends Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isNormalizing
The is normalizing flag.
|
private ReusableAntlrACIItemLexer |
lexer
the antlr generated lexer being wrapped
|
private ReusableAntlrACIItemParser |
parser
the antlr generated parser being wrapped
|
| Constructor and Description |
|---|
ACIItemParser(org.apache.directory.api.ldap.model.schema.normalizers.NameComponentNormalizer normalizer,
org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
Creates a normalizing ACIItem parser.
|
ACIItemParser(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
Creates a ACIItem parser.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNormizing()
Tests to see if this parser is normalizing.
|
ACIItem |
parse(String spec)
Parses an ACIItem without exhausting the parser.
|
private void |
reset(String spec)
Initializes the plumbing by creating a pipe and coupling the parser/lexer
pair with it.
|
private ReusableAntlrACIItemParser parser
private ReusableAntlrACIItemLexer lexer
private final boolean isNormalizing
public ACIItemParser(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
schemaManager - the schema managerpublic ACIItemParser(org.apache.directory.api.ldap.model.schema.normalizers.NameComponentNormalizer normalizer,
org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
normalizer - the normalizerschemaManager - the schema managerprivate void reset(String spec)
spec - the specification to be parsedpublic ACIItem parse(String spec) throws ParseException
spec - the specification to be parsedParseException - if there are any recognition errors (bad syntax)public boolean isNormizing()
Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.