Examples of JvmOperation


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

    }
    return _xblockexpression;
  }
 
  public JvmOperation inferTestHelperMethod(final StateTestContext stateTestContext, final String prefix, final EObject context, final Procedure1<? super ITreeAppendable> initializer) {
    JvmOperation _xblockexpression = null;
    {
      String _relativeName = this._util.<JexTestSequence>relativeName(context, JexTestSequence.class);
      String _plus = (prefix + _relativeName);
      JvmTypeReference _newTypeRef = this._jvmTypesBuilder.newTypeRef(context, void.class);
      final JvmOperation method = this.inferTestHelperMethod(stateTestContext, _plus, _newTypeRef, context);
      final Procedure1<ITreeAppendable> _function = new Procedure1<ITreeAppendable>() {
        public void apply(final ITreeAppendable it) {
          initializer.apply(it);
        }
      };
View Full Code Here

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

  public void inferPropertiesTestMethods(final PropertiesTest pt, final JvmGenericType jvmClass) {
    final JvmTypeReference returnType = this._jvmTypesBuilder.newTypeRef(pt, void.class);
    StateTestContext _ancestor = this._util.<StateTestContext>ancestor(pt, StateTestContext.class);
    String _relativeName = this._util.<StateTestContext>relativeName(pt, StateTestContext.class);
    String _plus = ("_test_" + _relativeName);
    final JvmOperation propertiesMethod = this.inferTestHelperMethod(_ancestor, _plus, returnType, ((EObject) pt));
    this._iJvmModelAssociator.associateLogicalContainer(pt, propertiesMethod);
    final Procedure1<ITreeAppendable> _function = new Procedure1<ITreeAppendable>() {
      public void apply(final ITreeAppendable it) {
        EList<XExpression> _expressions = pt.getExpressions();
        for (final XExpression expr : _expressions) {
View Full Code Here

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

        _and_1 = ((expr instanceof XBinaryOperation) && (_feature instanceof JvmOperation));
      }
      if (_and_1) {
        final XBinaryOperation binOp = ((XBinaryOperation) expr);
        JvmIdentifiableElement _feature_1 = binOp.getFeature();
        final JvmOperation feature = ((JvmOperation) _feature_1);
        JvmDeclaredType _declaringType = feature.getDeclaringType();
        final String typeName = _declaringType.getQualifiedName();
        boolean _and_2 = false;
        boolean _startsWith = typeName.startsWith("org.eclipse.xtext.xbase.lib.");
        if (!_startsWith) {
          _and_2 = false;
        } else {
          boolean _endsWith = typeName.endsWith("Extensions");
          _and_2 = (_startsWith && _endsWith);
        }
        if (_and_2) {
          String _simpleName = feature.getSimpleName();
          final String _switchValue = _simpleName;
          boolean _matched = false;
          if (!_matched) {
            if (Objects.equal(_switchValue,"operator_equals")) {
              _matched=true;
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.