Package com.github.jknack.antlr4ide.lang

Examples of com.github.jknack.antlr4ide.lang.Mode.eContainer()


    Mode mode = createMock(Mode.class);
    EClass eClass = createMock(EClass.class);
    EStructuralFeature feature = createMock(EStructuralFeature.class);
    Antlr4Validator validator = PowerMock.createPartialMock(Antlr4Validator.class, "error");

    expect(mode.eContainer()).andReturn(grammar);

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

    expect(mode.eClass()).andReturn(eClass);
    expect(eClass.getEStructuralFeature("id")).andReturn(feature);
View Full Code Here


    EClass eClass = createMock(EClass.class);
    EStructuralFeature feature = createMock(EStructuralFeature.class);
    LexerRule rule = createMock(LexerRule.class);
    Antlr4Validator validator = PowerMock.createPartialMock(Antlr4Validator.class, "error");

    expect(mode.eContainer()).andReturn(grammar);
    expect(mode.getId()).andReturn("MODE");

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

    expect(mode.getRules()).andReturn(rules);
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.