Package com.github.jknack.antlr4ide.lang

Examples of com.github.jknack.antlr4ide.lang.LexerRule.eClass()


    Antlr4Validator validator = PowerMock.createPartialMock(Antlr4Validator.class, "error");

    expect(grammar.getType()).andReturn(GrammarType.PARSER);

    expect(rule.eContainer()).andReturn(grammar);
    expect(rule.eClass()).andReturn(eClass);
    expect(rule.getName()).andReturn("RULE");
    expect(eClass.getEStructuralFeature("name")).andReturn(feature);

    PowerMock.expectPrivate(validator, "error", "lexer rule 'RULE' not allowed in parser",
        rule, feature);
View Full Code Here


    expect(mode.getRules()).andReturn(rules);

    expect(rule1.getName()).andReturn("Rule");

    expect(rule2.getName()).andReturn("Rule");
    expect(rule2.eClass()).andReturn(eClass);

    expect(eClass.getEStructuralFeature("name")).andReturn(feature);

    PowerMock.expectPrivate(validator, "error", "rule 'Rule' redefinition", rule2, feature);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.