public class SubtreeSpecificationParser extends Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isNormalizing |
private ReusableAntlrSubtreeSpecificationLexer |
lexer
the antlr generated lexer being wrapped
|
private ReusableAntlrSubtreeSpecificationParser |
parser
the antlr generated parser being wrapped
|
| Constructor and Description |
|---|
SubtreeSpecificationParser(NormalizerMappingResolver resolver,
SchemaManager schemaManager)
Creates a normalizing subtree specification parser.
|
SubtreeSpecificationParser(SchemaManager schemaManager)
Creates a subtree specification parser.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNormizing()
Tests to see if this parser is normalizing.
|
SubtreeSpecification |
parse(String spec)
Parses a subtree specification 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 ReusableAntlrSubtreeSpecificationParser parser
private ReusableAntlrSubtreeSpecificationLexer lexer
private final boolean isNormalizing
public SubtreeSpecificationParser(SchemaManager schemaManager)
schemaManager - The SchemaManagerpublic SubtreeSpecificationParser(NormalizerMappingResolver resolver, SchemaManager schemaManager)
resolver - The resolver to useschemaManager - The SchemaManagerprivate void reset(String spec)
spec - The specification to parsepublic SubtreeSpecification parse(String spec) throws ParseException
spec - the specification to be parsedParseException - if there are any recognition errors (bad syntax)public boolean isNormizing()
Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.