Examples of JvmGenericType


Examples of org.eclipse.xtext.common.types.JvmGenericType

  protected void _infer(final Script script, final IJvmDeclaredTypeAcceptor acceptor, final boolean isPreIndexingPhase) {
    Resource _eResource = script.eResource();
    URI _uRI = _eResource.getURI();
    URI _trimFileExtension = _uRI.trimFileExtension();
    final String className = _trimFileExtension.lastSegment();
    JvmGenericType _class = this._jvmTypesBuilder.toClass(script, className);
    final Procedure1<JvmGenericType> _function = new Procedure1<JvmGenericType>() {
      public void apply(final JvmGenericType it) {
        EList<JvmMember> _members = it.getMembers();
        JvmTypeReference _typeRef = ScriptingJvmModelInferrer.this._typeReferenceBuilder.typeRef(Void.TYPE);
        final Procedure1<JvmOperation> _function = new Procedure1<JvmOperation>() {
View Full Code Here

Examples of org.eclipse.xtext.common.types.JvmGenericType

  @Inject
  @Extension
  private JvmTypesBuilder _jvmTypesBuilder;
 
  protected void _infer(final Program program, final IJvmDeclaredTypeAcceptor acceptor, final boolean isPreIndexingPhase) {
    JvmGenericType _class = this._jvmTypesBuilder.toClass(program, TortoiseShellJvmModelInferrer.INFERRED_CLASS_NAME);
    final Procedure1<JvmGenericType> _function = new Procedure1<JvmGenericType>() {
      public void apply(final JvmGenericType it) {
        EList<JvmTypeReference> _superTypes = it.getSuperTypes();
        JvmTypeReference _typeRef = TortoiseShellJvmModelInferrer.this._typeReferenceBuilder.typeRef(Tortoise.class);
        TortoiseShellJvmModelInferrer.this._jvmTypesBuilder.<JvmTypeReference>operator_add(_superTypes, _typeRef);
View Full Code Here

Examples of org.eclipse.xtext.common.types.JvmGenericType

 
  protected void _infer(final MongoFile file, final IJvmDeclaredTypeAcceptor acceptor, final boolean isPreIndexingPhase) {
    List<MongoBean> _eAllOfType = EcoreUtil2.<MongoBean>eAllOfType(file, MongoBean.class);
    for (final MongoBean bean : _eAllOfType) {
      QualifiedName _fullyQualifiedName = this._iQualifiedNameProvider.getFullyQualifiedName(bean);
      JvmGenericType _class = this._jvmTypesBuilder.toClass(bean, _fullyQualifiedName);
      final Procedure1<JvmGenericType> _function = new Procedure1<JvmGenericType>() {
        public void apply(final JvmGenericType it) {
          String _documentation = MongoBeansJvmModelInferrer.this._jvmTypesBuilder.getDocumentation(bean);
          MongoBeansJvmModelInferrer.this._jvmTypesBuilder.setDocumentation(it, _documentation);
          EList<JvmTypeReference> _superTypes = it.getSuperTypes();
View Full Code Here

Examples of org.eclipse.xtext.common.types.JvmGenericType

      _xifexpression = (_plus + simpleName);
    } else {
      _xifexpression = simpleName;
    }
    final String qualifiedName = _xifexpression;
    final JvmGenericType javaClass = this._jvmTypesBuilder.toClass(element, qualifiedName);
    final Procedure1<JvmGenericType> _function = new Procedure1<JvmGenericType>() {
      public void apply(final JvmGenericType it) {
        EList<Parameter> _params = element.getParams();
        for (final Parameter param : _params) {
          {
View Full Code Here

Examples of org.eclipse.xtext.common.types.JvmGenericType

  /**
   * The main entry point for this class.
   */
  protected void _infer(final Model model, final IJvmDeclaredTypeAcceptor acceptor, final boolean isPreIndexingPhase) {
    String _javaClassName = this.javaClassName(model);
    JvmGenericType _class = this._jvmTypesBuilder.toClass(model, _javaClassName);
    final Procedure1<JvmGenericType> _function = new Procedure1<JvmGenericType>() {
      public void apply(final JvmGenericType it) {
        EList<JvmTypeReference> _superTypes = it.getSuperTypes();
        JvmTypeReference _typeRef = RouteJvmModelInferrer.this._typeReferenceBuilder.typeRef(RouteJvmModelInferrer.HTTP_SERVLET);
        RouteJvmModelInferrer.this._jvmTypesBuilder.<JvmTypeReference>operator_add(_superTypes, _typeRef);
View Full Code Here

Examples of org.eclipse.xtext.common.types.JvmGenericType

  @Extension
  private IQualifiedNameProvider _iQualifiedNameProvider;
 
  protected void _infer(final ModuleAST module, final IJvmDeclaredTypeAcceptor acceptor, final boolean preIndexingPhase) {
    QualifiedName _fullyQualifiedName = this._iQualifiedNameProvider.getFullyQualifiedName(module);
    JvmGenericType _class = this.builder.toClass(module, _fullyQualifiedName);
    final Procedure1<JvmGenericType> _function = new Procedure1<JvmGenericType>() {
      public void apply(final JvmGenericType it) {
        String _documentation = GuiceModulesJvmModelInferrer.this.builder.getDocumentation(module);
        GuiceModulesJvmModelInferrer.this.builder.setDocumentation(it, _documentation);
        EList<JvmTypeReference> _superTypes = it.getSuperTypes();
View Full Code Here

Examples of org.eclipse.xtext.common.types.JvmGenericType

  private JvmTypesBuilder _jvmTypesBuilder;
 
  protected void _infer(final BuildFile file, @Extension final IJvmDeclaredTypeAcceptor acceptor, final boolean isPreIndexingPhase) {
    final String qualifiedName = this.getJavaClassName(file);
    final String simpleName = Strings.lastToken(qualifiedName, ".");
    JvmGenericType _class = this._jvmTypesBuilder.toClass(file, qualifiedName);
    final Procedure1<JvmGenericType> _function = new Procedure1<JvmGenericType>() {
      public void apply(final JvmGenericType it) {
        EList<JvmTypeReference> _superTypes = it.getSuperTypes();
        JvmTypeReference _typeRef = BuildDSLJvmModelInferrer.this._typeReferenceBuilder.typeRef(BuildScript.class);
        BuildDSLJvmModelInferrer.this._jvmTypesBuilder.<JvmTypeReference>operator_add(_superTypes, _typeRef);
View Full Code Here

Examples of org.eclipse.xtext.common.types.JvmGenericType

  @Inject
  @Extension
  private TypeReferences _typeReferences;
 
  protected void _infer(final Model model, final IJvmDeclaredTypeAcceptor acceptor, final boolean isPrelinkingPhase) {
    JvmGenericType _class = this._jvmTypesBuilder.toClass(model, IModelQueryConstants.INFERRED_CLASS_NAME);
    IPostIndexingInitializing<JvmGenericType> _accept = acceptor.<JvmGenericType>accept(_class);
    final Procedure1<JvmGenericType> _function = new Procedure1<JvmGenericType>() {
        public void apply(final JvmGenericType it) {
          EList<JvmMember> _members = it.getMembers();
          JvmTypeReference _typeForName = ModelQueryLanguageJvmModelInferrer.this._typeReferences.getTypeForName(IResourceDescriptions.class, model);
View Full Code Here

Examples of org.eclipse.xtext.common.types.JvmGenericType

    return null;
  }

  private Method getActionMethod(XFeatureCall call) {
    if(call.getFeature().eContainer() instanceof JvmGenericType) {
      JvmGenericType type = (JvmGenericType) call.getFeature().eContainer();
      Object[] services = ScriptUIActivator.actionServiceTracker.getServices();
      if(services!=null) {
        for(Object service : services) {
          ActionService actionService = (ActionService) service;
          if(actionService.getActionClassName().equals(type.getIdentifier())) {
            for(Method m : actionService.getActionClass().getMethods()) {
              if(m.toString().contains((call.getFeature().getIdentifier()))) {
                return m;
              }
            }
View Full Code Here

Examples of org.eclipse.xtext.common.types.JvmGenericType

      String _qualifiedName = _testedClass.getQualifiedName();
      String _plus = (_qualifiedName + "Test");
      _elvis = ObjectExtensions.<String>operator_elvis(_testClassName, _plus);
    }
    final String className = _elvis;
    final JvmGenericType jvmClass = this._jvmTypesBuilder.toClass(testCase, className);
    EList<JvmTypeReference> _superTypes = jvmClass.getSuperTypes();
    JvmTypeReference _newTypeRef = this._jvmTypesBuilder.newTypeRef(testCase, "junit.framework.TestCase");
    this._jvmTypesBuilder.<JvmTypeReference>operator_add(_superTypes, _newTypeRef);
    IPostIndexingInitializing<JvmGenericType> _accept = acceptor.<JvmGenericType>accept(jvmClass);
    final Procedure1<JvmGenericType> _function = new Procedure1<JvmGenericType>() {
      public void apply(final JvmGenericType it) {
        final JvmAnnotationReference jexerciseTestCaseAnnotation = JexTestJvmModelInferrer.this._jvmTypesBuilder.toAnnotation(testCase, "no.hal.jex.runtime.JExercise");
        JexTestJvmModelInferrer.this._testAnnotationsSupport.generateTestClassAnntations(testCase, jexerciseTestCaseAnnotation);
        EList<JvmAnnotationReference> _annotations = it.getAnnotations();
        JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmAnnotationReference>operator_add(_annotations, jexerciseTestCaseAnnotation);
        boolean _isDefaultInstanceTest = JexTestJvmModelInferrer.this._util.isDefaultInstanceTest(testCase);
        if (_isDefaultInstanceTest) {
          EList<JvmMember> _members = jvmClass.getMembers();
          String _defaultInstanceName = JexTestJvmModelInferrer.this._util.defaultInstanceName(testCase);
          JvmParameterizedTypeReference _testedClass = testCase.getTestedClass();
          final Procedure1<JvmField> _function = new Procedure1<JvmField>() {
            public void apply(final JvmField it) {
              it.setVisibility(JvmVisibility.PRIVATE);
            }
          };
          JvmField _field = JexTestJvmModelInferrer.this._jvmTypesBuilder.toField(testCase, _defaultInstanceName, _testedClass, _function);
          JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmField>operator_add(_members, _field);
        } else {
          EList<Instance> _instances = testCase.getInstances();
          for (final Instance instance : _instances) {
            {
              final JvmTypeReference type = JexTestJvmModelInferrer.this._util.jvmType(instance);
              EList<JvmMember> _members_1 = jvmClass.getMembers();
              String _name = instance.getName();
              final Procedure1<JvmField> _function_1 = new Procedure1<JvmField>() {
                public void apply(final JvmField it) {
                  it.setVisibility(JvmVisibility.PRIVATE);
                }
              };
              JvmField _field_1 = JexTestJvmModelInferrer.this._jvmTypesBuilder.toField(instance, _name, type, _function_1);
              JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmField>operator_add(_members_1, _field_1);
              EList<JvmMember> _members_2 = it.getMembers();
              String _name_1 = instance.getName();
              String _plus = ("_init_" + _name_1);
              JvmOperation _inferTestInstanceInitMethod = JexTestJvmModelInferrer.this.inferTestInstanceInitMethod(_plus, instance);
              JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmOperation>operator_add(_members_2, _inferTestInstanceInitMethod);
            }
          }
        }
        EList<JvmMember> _members_1 = jvmClass.getMembers();
        JvmTypeReference _newTypeRef = JexTestJvmModelInferrer.this._jvmTypesBuilder.newTypeRef(testCase, void.class);
        final Procedure1<JvmOperation> _function_1 = new Procedure1<JvmOperation>() {
          public void apply(final JvmOperation it) {
            it.setVisibility(JvmVisibility.PROTECTED);
            EList<JvmAnnotationReference> _annotations = it.getAnnotations();
            JvmAnnotationReference _annotation = JexTestJvmModelInferrer.this._jvmTypesBuilder.toAnnotation(testCase, Override.class);
            JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmAnnotationReference>operator_add(_annotations, _annotation);
            final Procedure1<ITreeAppendable> _function = new Procedure1<ITreeAppendable>() {
              public void apply(final ITreeAppendable it) {
                JexTestJvmModelInferrer.this.generateSetUpMethodBody(testCase, it);
              }
            };
            JexTestJvmModelInferrer.this._jvmTypesBuilder.setBody(it, _function);
          }
        };
        JvmOperation _method = JexTestJvmModelInferrer.this._jvmTypesBuilder.toMethod(testCase, "setUp", _newTypeRef, _function_1);
        JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmOperation>operator_add(_members_1, _method);
        EList<Method> _methods = testCase.getMethods();
        for (final Method method : _methods) {
          {
            String _elvis = null;
            String _name = method.getName();
            QualifiedName _create = QualifiedName.create(_name);
            QualifiedName _methodName = JexTestJvmModelInferrer.this._operatorMapping.getMethodName(_create);
            String _string = null;
            if (_methodName!=null) {
              _string=_methodName.toString();
            }
            if (_string != null) {
              _elvis = _string;
            } else {
              String _name_1 = method.getName();
              _elvis = ObjectExtensions.<String>operator_elvis(_string, _name_1);
            }
            final String methodName = _elvis;
            boolean _notEquals = (!Objects.equal(methodName, null));
            if (_notEquals) {
              EList<JvmMember> _members_2 = it.getMembers();
              JvmTypeReference _returnType = method.getReturnType();
              final Procedure1<JvmOperation> _function_2 = new Procedure1<JvmOperation>() {
                public void apply(final JvmOperation it) {
                  it.setVisibility(JvmVisibility.PRIVATE);
                  boolean _isStatic = method.isStatic();
                  it.setStatic(_isStatic);
                  EList<Parameter> _parameters = method.getParameters();
                  JexTestJvmModelInferrer.this.initParameters(it, _parameters);
                  XExpression _body = method.getBody();
                  JexTestJvmModelInferrer.this._jvmTypesBuilder.setBody(it, _body);
                }
              };
              JvmOperation _method_1 = JexTestJvmModelInferrer.this._jvmTypesBuilder.toMethod(method, methodName, _returnType, _function_2);
              JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmOperation>operator_add(_members_2, _method_1);
            }
          }
        }
        EList<StateFunction> _stateFunctions = testCase.getStateFunctions();
        for (final StateFunction stateFunction : _stateFunctions) {
          String _name = stateFunction.getName();
          boolean _notEquals = (!Objects.equal(_name, null));
          if (_notEquals) {
            String _name_1 = stateFunction.getName();
            JvmTypeReference _newTypeRef_1 = JexTestJvmModelInferrer.this._jvmTypesBuilder.newTypeRef(stateFunction, void.class);
            final Procedure1<JvmOperation> _function_2 = new Procedure1<JvmOperation>() {
              public void apply(final JvmOperation it) {
                it.setVisibility(JvmVisibility.PRIVATE);
                EList<JvmFormalParameter> _parameters = it.getParameters();
                String _string = XbaseScopeProvider.IT.toString();
                JvmParameterizedTypeReference _elvis = null;
                JvmParameterizedTypeReference _type = stateFunction.getType();
                if (_type != null) {
                  _elvis = _type;
                } else {
                  JvmParameterizedTypeReference _testedClass = testCase.getTestedClass();
                  _elvis = ObjectExtensions.<JvmParameterizedTypeReference>operator_elvis(_type, _testedClass);
                }
                JvmFormalParameter _parameter = JexTestJvmModelInferrer.this._jvmTypesBuilder.toParameter(stateFunction, _string, _elvis);
                JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmFormalParameter>operator_add(_parameters, _parameter);
                EList<Parameter> _parameters_1 = stateFunction.getParameters();
                JexTestJvmModelInferrer.this.initParameters(it, _parameters_1);
                final Procedure1<ITreeAppendable> _function = new Procedure1<ITreeAppendable>() {
                  public void apply(final ITreeAppendable it) {
                    XBlockExpression _test = stateFunction.getTest();
                    JexTestJvmModelInferrer.this.generateTestHelperMethodCall("_test_", ((PropertiesTest) _test), it);
                  }
                };
                JexTestJvmModelInferrer.this._jvmTypesBuilder.setBody(it, _function);
              }
            };
            final JvmOperation stateMethod = JexTestJvmModelInferrer.this._jvmTypesBuilder.toMethod(stateFunction, _name_1, _newTypeRef_1, _function_2);
            EList<JvmMember> _members_2 = it.getMembers();
            JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmOperation>operator_add(_members_2, stateMethod);
            XBlockExpression _test = stateFunction.getTest();
            boolean _notEquals_1 = (!Objects.equal(_test, null));
            if (_notEquals_1) {
              XBlockExpression _test_1 = stateFunction.getTest();
              JexTestJvmModelInferrer.this.inferPropertiesTestMethods(((PropertiesTest) _test_1), jvmClass);
            }
          }
        }
        final ArrayList<Pair<JexTestSequence,JvmOperation>> testMethods = CollectionLiterals.<Pair<JexTestSequence,JvmOperation>>newArrayList();
        EList<JexTestSequence> _testSequences = testCase.getTestSequences();
        for (final JexTestSequence sequence : _testSequences) {
          String _name_2 = sequence.getName();
          boolean _notEquals_2 = (!Objects.equal(_name_2, null));
          if (_notEquals_2) {
            String _name_3 = sequence.getName();
            String _firstUpper = StringExtensions.toFirstUpper(_name_3);
            String _plus = ("test" + _firstUpper);
            JvmTypeReference _newTypeRef_2 = JexTestJvmModelInferrer.this._jvmTypesBuilder.newTypeRef(sequence, void.class);
            final Procedure1<JvmOperation> _function_3 = new Procedure1<JvmOperation>() {
              public void apply(final JvmOperation it) {
                it.setVisibility(JvmVisibility.PUBLIC);
                final Procedure1<ITreeAppendable> _function = new Procedure1<ITreeAppendable>() {
                  public void apply(final ITreeAppendable it) {
                    EList<Instance> _instances = sequence.getInstances();
                    for (final Instance instance : _instances) {
                      JexTestJvmModelInferrer.this.generateLocalInstance(instance, it);
                    }
                    EList<Transition> _transitions = sequence.getTransitions();
                    for (final Transition transition : _transitions) {
                      JexTestJvmModelInferrer.this.generateTransition(transition, it);
                    }
                  }
                };
                JexTestJvmModelInferrer.this._jvmTypesBuilder.setBody(it, _function);
              }
            };
            final JvmOperation testMethod = JexTestJvmModelInferrer.this._jvmTypesBuilder.toMethod(sequence, _plus, _newTypeRef_2, _function_3);
            Pair<JexTestSequence,JvmOperation> _mappedTo = Pair.<JexTestSequence, JvmOperation>of(sequence, testMethod);
            testMethods.add(_mappedTo);
            EList<JvmMember> _members_3 = it.getMembers();
            JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmOperation>operator_add(_members_3, testMethod);
          }
        }
        EList<JvmMember> _members_4 = it.getMembers();
        final Function1<Pair<JexTestSequence,JvmOperation>,JvmOperation> _function_4 = new Function1<Pair<JexTestSequence,JvmOperation>,JvmOperation>() {
          public JvmOperation apply(final Pair<JexTestSequence,JvmOperation> it) {
            JvmOperation _value = it.getValue();
            return _value;
          }
        };
        List<JvmMember> _map = ListExtensions.<Pair<JexTestSequence,JvmOperation>, JvmMember>map(testMethods, _function_4);
        JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmMember>operator_add(_members_4, _map);
        EList<JexTestSequence> _testSequences_1 = testCase.getTestSequences();
        for (final JexTestSequence sequence_1 : _testSequences_1) {
          {
            EList<Instance> _instances_1 = sequence_1.getInstances();
            for (final Instance instance_1 : _instances_1) {
              EList<JvmMember> _members_5 = it.getMembers();
              String _relativeName = JexTestJvmModelInferrer.this._util.<JexTestSequence>relativeName(instance_1, JexTestSequence.class);
              String _plus_1 = ("_init_" + _relativeName);
              JvmOperation _inferTestInstanceInitMethod = JexTestJvmModelInferrer.this.inferTestInstanceInitMethod(_plus_1, instance_1);
              JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmOperation>operator_add(_members_5, _inferTestInstanceInitMethod);
            }
            EList<Transition> _transitions = sequence_1.getTransitions();
            for (final Transition transition : _transitions) {
              {
                boolean _and = false;
                TransitionSource _source = transition.getSource();
                boolean _notEquals_3 = (!Objects.equal(_source, null));
                if (!_notEquals_3) {
                  _and = false;
                } else {
                  TransitionSource _source_1 = transition.getSource();
                  State _state = _source_1.getState();
                  boolean _notEquals_4 = (!Objects.equal(_state, null));
                  _and = (_notEquals_3 && _notEquals_4);
                }
                if (_and) {
                  TransitionSource _source_2 = transition.getSource();
                  State _state_1 = _source_2.getState();
                  JexTestJvmModelInferrer.this.inferStateTestMethods(sequence_1, _state_1, jvmClass);
                }
                EList<TransitionAction> _actions = transition.getActions();
                Iterable<TransitionExpressionAction> _filter = Iterables.<TransitionExpressionAction>filter(_actions, TransitionExpressionAction.class);
                for (final TransitionExpressionAction action : _filter) {
                  {
                    EList<JvmMember> _members_6 = it.getMembers();
                    JvmOperation _inferActionMethod = JexTestJvmModelInferrer.this.inferActionMethod(sequence_1, action);
                    JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmOperation>operator_add(_members_6, _inferActionMethod);
                    XExpression _times = action.getTimes();
                    boolean _notEquals_5 = (!Objects.equal(_times, null));
                    if (_notEquals_5) {
                      EList<JvmMember> _members_7 = it.getMembers();
                      XExpression _times_1 = action.getTimes();
                      JvmOperation _inferTestHelperMethod = JexTestJvmModelInferrer.this.inferTestHelperMethod(sequence_1, "_transition_exprAction_times_", action, _times_1, null);
                      JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmOperation>operator_add(_members_7, _inferTestHelperMethod);
                    }
                  }
                }
                TransitionEffect _effect = transition.getEffect();
                if ((_effect instanceof TransitionTargetEffect)) {
                  TransitionEffect _effect_1 = transition.getEffect();
                  final TransitionTargetEffect targetEffect = ((TransitionTargetEffect) _effect_1);
                  State _state_2 = targetEffect.getState();
                  boolean _notEquals_5 = (!Objects.equal(_state_2, null));
                  if (_notEquals_5) {
                    State _state_3 = targetEffect.getState();
                    JexTestJvmModelInferrer.this.inferStateTestMethods(sequence_1, _state_3, jvmClass);
                  }
                }
              }
            }
          }
        }
        for (final Pair<JexTestSequence,JvmOperation> sequenceMethod : testMethods) {
          {
            JexTestSequence _key = sequenceMethod.getKey();
            final JvmAnnotationReference jexerciseTestMethodAnnotation = JexTestJvmModelInferrer.this._jvmTypesBuilder.toAnnotation(_key, "no.hal.jex.runtime.JExercise");
            JexTestSequence _key_1 = sequenceMethod.getKey();
            JexTestJvmModelInferrer.this._testAnnotationsSupport.generateTestMethodAnntations(_key_1, jexerciseTestMethodAnnotation);
            JvmOperation _value = sequenceMethod.getValue();
            EList<JvmAnnotationReference> _annotations_1 = _value.getAnnotations();
            JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmAnnotationReference>operator_add(_annotations_1, jexerciseTestMethodAnnotation);
          }
        }
        EList<JvmMember> _members_5 = it.getMembers();
        JvmTypeReference _newTypeRef_3 = JexTestJvmModelInferrer.this._jvmTypesBuilder.newTypeRef(testCase, void.class);
        final Procedure1<JvmOperation> _function_5 = new Procedure1<JvmOperation>() {
          public void apply(final JvmOperation it) {
            it.setVisibility(JvmVisibility.PUBLIC);
            it.setStatic(true);
            EList<JvmFormalParameter> _parameters = it.getParameters();
            JvmTypeReference _newTypeRef = JexTestJvmModelInferrer.this._jvmTypesBuilder.newTypeRef(testCase, String.class);
            JvmTypeReference _addArrayTypeDimension = JexTestJvmModelInferrer.this._jvmTypesBuilder.addArrayTypeDimension(_newTypeRef);
            JvmFormalParameter _parameter = JexTestJvmModelInferrer.this._jvmTypesBuilder.toParameter(testCase, "args", _addArrayTypeDimension);
            JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmFormalParameter>operator_add(_parameters, _parameter);
            final Procedure1<ITreeAppendable> _function = new Procedure1<ITreeAppendable>() {
              public void apply(final ITreeAppendable it) {
                StringConcatenation _builder = new StringConcatenation();
                _builder.append("no.hal.jex.standalone.JexStandalone.main(");
                String _simpleName = jvmClass.getSimpleName();
                _builder.append(_simpleName, "");
                _builder.append(".class);");
                it.append(_builder);
              }
            };
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.