Improve IfFeaturePredicateVisitor 13/75113/5
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 11 Aug 2018 00:10:23 +0000 (02:10 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 11 Aug 2018 01:10:17 +0000 (03:10 +0200)
commit41cd74eff8a48f5437e76990319c97fd7bdd5df2
treeeb8e8761c455da9dfa9b0e570aa67e121a761891
parent3b970425904b55f4faa94ddb47753b389485c0ff
Improve IfFeaturePredicateVisitor

We need to detect parser errors and not print them to stderr,
create an abstract class with the validation functionality
and use it when parsing an if-feature argument.

Change-Id: I63ad241bcfeeda7cb05f1472f593167d5ce08404
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/antlr/AbstractParserErrorListener.java [new file with mode: 0644]
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/antlr/SourceExceptionParser.java [new file with mode: 0644]
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/if_feature/IfFeaturePredicateVisitor.java