Package com.github.jknack.antlr4ide.lang

Examples of com.github.jknack.antlr4ide.lang.LabeledAlt


  @Test
  public void labelNameConflict() throws Exception {
    EList<Rule> rules = new BasicEList<Rule>();
    Grammar grammar = createMock(Grammar.class);
    LabeledAlt label = createMock(LabeledAlt.class);
    Rule rule = createMock(ParserRule.class);
    EClass eClass = createMock(EClass.class);
    EStructuralFeature feature = createMock(EStructuralFeature.class);

    expect(label.eContainer()).andReturn(grammar);
    expect(label.getLabel()).andReturn("div");
    expect(label.eClass()).andReturn(eClass);

    expect(grammar.getRules()).andReturn(rules);
    expect(grammar.eContainer()).andReturn(null);

    expect(rule.getName()).andReturn("div");
View Full Code Here

TOP

Related Classes of com.github.jknack.antlr4ide.lang.LabeledAlt

Copyright © 2018 www.massapicom. 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.