public class SubtreeSpecificationChecker extends Object
| Modifier and Type | Field and Description |
|---|---|
private ReusableAntlrSubtreeSpecificationCheckerLexer |
lexer
the antlr generated lexer being wrapped
|
private ReusableAntlrSubtreeSpecificationChecker |
parser
the antlr generated parser being wrapped
|
| Constructor and Description |
|---|
SubtreeSpecificationChecker(SchemaManager schemaManager)
Creates a normalizing subtree specification parser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
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 ReusableAntlrSubtreeSpecificationChecker parser
private ReusableAntlrSubtreeSpecificationCheckerLexer lexer
public SubtreeSpecificationChecker(SchemaManager schemaManager)
schemaManager - The SchemaManagerprivate void reset(String spec)
spec - The specification to parsepublic void parse(String spec) throws ParseException
spec - the specification to be parsedParseException - if there are any recognition errors (bad syntax)Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.