Examples of eClass()


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

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

    expect(option.getName()).andReturn("Some");
    expect(option.eClass()).andReturn(eClass);
    expect(eClass.getEStructuralFeature("name")).andReturn(feature);

    PowerMock.expectPrivate(validator, "warning", "unsupported option 'Some'",
        option, feature);
View Full Code Here

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

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

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

    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", "parser rule 'rule' not allowed in lexer",
        rule, feature);
View Full Code Here

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

    expect(grammar.getModes()).andReturn(new BasicEList<Mode>());

    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

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

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

    expect(ruleRef.getReference()).andReturn(reference);
    expect(ruleRef.getArgs()).andReturn(null);
    expect(ruleRef.eClass()).andReturn(eClass);

    expect(reference.getName()).andReturn("rule");
    expect(reference.getArgs()).andReturn("[int a, int b]");

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

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

    expect(rule.getName()).andReturn("R");

    expect(v3Token.getId()).andReturn("R");

    expect(v3Token.eClass()).andReturn(eClass);
    expect(eClass.getEStructuralFeature("id")).andReturn(feature);

    PowerMock.expectPrivate(validator, "warning", "token name 'R' is already defined",
        v3Token, feature);
View Full Code Here

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

    expect(rule.getName()).andReturn("R");

    expect(v4Token.getName()).andReturn("R");

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

    PowerMock.expectPrivate(validator, "warning", "token name 'R' is already defined",
        v4Token, feature);
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.LiteralExpression.eClass()

  private void _link(HostClassDefinition o, PPImportedNamesAdapter importedNames, IMessageAcceptor acceptor) {
    final LiteralExpression parent = o.getParent();
    if(parent == null)
      return;
    String parentString = null;
    if(parent.eClass() == PPPackage.Literals.LITERAL_DEFAULT)
      parentString = "default";
    else if(parent.eClass() == PPPackage.Literals.LITERAL_NAME_OR_REFERENCE)
      parentString = ((LiteralNameOrReference) parent).getValue();
    if(parentString == null || parentString.length() < 1)
      return;
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.TextExpression.eClass()

    ValidationPreference dqStringNotRequiredVariable = advisor.dqStringNotRequiredVariable();
    SINGLE_INTERPOLATION: if(dqStringNotRequiredVariable.isWarningOrError()) {
      if(o.getStringPart().size() == 1) {
        String replacement = null;
        TextExpression te = o.getStringPart().get(0);
        switch(te.eClass().getClassifierID()) {
          case PPPackage.VARIABLE_TE:
            replacement = ((VariableTE) te).getVarName();
            break;
          case PPPackage.EXPRESSION_TE:
            Expression expr = ((ExpressionTE) te).getExpression();
View Full Code Here

Examples of eu.admire.dispel.imports.TypeImport.eClass()

         
        if (imp instanceof TypeImport) {

          TypeImport peImp = (TypeImport) imp;

          EStructuralFeature eSF = peImp.eClass().getEStructuralFeature(
              "type");

          DispelType pe = (DispelType) peImp
              .eGet(eSF, false);
         
View Full Code Here

Examples of org.dmg.pmml._40.DataFieldType.eClass()

          tRelations = new ArrayList<DataFieldType>();
         
          tRelations.add(oldDataFieldType);       
                                     
          cmd = SetCommand.create(diagram.getEditingDomain(), dft,
              (EStructuralFeature) dft.eClass().getEStructuralFeature(
                  "relation"), tRelations);
         
          diagram.getEditingDomain().getCommandStack().execute(cmd);         
         
          oldDataFieldType  = dft;
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.