public class ACIItemParser
extends java.lang.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(NameComponentNormalizer normalizer,
SchemaManager schemaManager)
Creates a normalizing ACIItem parser.
|
ACIItemParser(SchemaManager schemaManager)
Creates a ACIItem parser.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNormizing()
Tests to see if this parser is normalizing.
|
ACIItem |
parse(java.lang.String spec)
Parses an ACIItem without exhausting the parser.
|
private void |
reset(java.lang.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(SchemaManager schemaManager)
schemaManager - the schema managerpublic ACIItemParser(NameComponentNormalizer normalizer, SchemaManager schemaManager)
normalizer - the normalizerschemaManager - the schema managerprivate void reset(java.lang.String spec)
public ACIItem parse(java.lang.String spec) throws java.text.ParseException
spec - the specification to be parsedjava.text.ParseException - if there are any recognition errors (bad syntax)public boolean isNormizing()