Examples of JVMType


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

    }
  }
 
  @Override
  public void completeComponentDefinition_RootNode(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    JvmType superType = jdtTypeProvider.findOrCreateTypeProvider(model.eResource().getResourceSet()).findTypeByName("javafx.scene.Parent");
    typeProposalProviders.createSubTypeProposals(superType, this, context, FXGraphPackage.Literals.COMPONENT_DEFINITION__ROOT_NODE, acceptor);
  }
View Full Code Here

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

  public String shortName(final JvmTypeReference r) {
    String _xblockexpression = null;
    {
      StringBuilder _stringBuilder = new StringBuilder();
      final StringBuilder builder = _stringBuilder;
      JvmType _type = r.getType();
      this.manager.appendType(_type, builder);
      String _string = builder.toString();
      _xblockexpression = (_string);
    }
    return _xblockexpression;
View Full Code Here

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

    StringConcatenation _builder = new StringConcatenation();
    {
      boolean _notEquals = (!Objects.equal(controller, null));
      if (_notEquals) {
        _builder.append(" controlledby ");
        JvmType _type = controller.getType();
        String _simpleName = _type.getSimpleName();
        _builder.append(_simpleName, "");
      }
    }
    return _builder;
  }
View Full Code Here

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

  public String shortName(final JvmTypeReference r, final ImportManager importManager) {
    String _xblockexpression = null;
    {
      StringBuilder _stringBuilder = new StringBuilder();
      final StringBuilder builder = _stringBuilder;
      JvmType _type = r.getType();
      importManager.appendType(_type, builder);
      String _string = builder.toString();
      _xblockexpression = (_string);
    }
    return _xblockexpression;
View Full Code Here

Examples of st.gravel.support.compiler.jvm.JVMType

    _instructions.add(_anInstruction.effectStack_(_stack));
    return this;
  }

  public JVMMethodCompiler ensureCast_(final JVMType _aType) {
    final JVMType _lastType;
    JVMType _temp1 = _lastType = _stack.peek();
    if (!st.gravel.support.jvm.ObjectExtensions.equals_(_temp1, _aType)) {
      JVMMethodCompiler.this.emit_(_lastType.newCastInstructionTo_(_aType));
    }
    return this;
  }
View Full Code Here

Examples of st.gravel.support.compiler.jvm.JVMType

    return this;
  }

  @Override
  public JVMMethodCompiler visitFieldWriteNode_(final FieldWriteNode _aNode) {
    final JVMType _fieldType;
    this.visit_(_aNode.owner());
    this.visit_(_aNode.value());
    _fieldType = TypeNodeToJVMTypeConverter.factory.namespace_(_parent.namespace()).visit_(_aNode.type());
    this.ensureCast_(_fieldType);
    this.emit_(DupX1.factory.basicNew());
View Full Code Here

Examples of st.gravel.support.compiler.jvm.JVMType

  public JVMType peek_(final int _anInteger) {
    return _elements[(_elements.length - (_anInteger - 1)) - 1];
  }

  public JVMType pop() {
    final JVMType _last;
    _last = _elements[_elements.length - 1];
    if (_last.isWide()) {
      throw new RuntimeException("Cannot pop a wide element");
    }
    _elements = st.gravel.support.jvm.ArrayExtensions.copyWithoutLast(_elements);
    return _last;
  }
View Full Code Here

Examples of st.gravel.support.compiler.jvm.JVMType

    st.gravel.support.jvm.ObjectExtensions.assert_(this, st.gravel.support.jvm.IntegerExtensions.equals_(this.size(), 1));
    return this.pop();
  }

  public JVMStack popType_(final JVMType _aJVMType) {
    final JVMType _last;
    _last = _aJVMType.isWide() ? this.popWide() : this.pop();
    st.gravel.support.jvm.ObjectExtensions.assert_(this, st.gravel.support.jvm.ObjectExtensions.equals_(_last, _aJVMType) || (st.gravel.support.jvm.ObjectExtensions.equals_(_last, JVMDynamicObjectType.factory.basicNew()) && st.gravel.support.jvm.ObjectExtensions.equals_(_aJVMType, JVMDefinedObjectType.factory.object())));
    return this;
  }
View Full Code Here

Examples of st.gravel.support.compiler.jvm.JVMType

    st.gravel.support.jvm.ObjectExtensions.assert_(this, st.gravel.support.jvm.ObjectExtensions.equals_(_last, _aJVMType) || (st.gravel.support.jvm.ObjectExtensions.equals_(_last, JVMDynamicObjectType.factory.basicNew()) && st.gravel.support.jvm.ObjectExtensions.equals_(_aJVMType, JVMDefinedObjectType.factory.object())));
    return this;
  }

  public JVMType popWide() {
    final JVMType _last;
    _last = _elements[_elements.length - 1];
    if (!_last.isWide()) {
      throw new RuntimeException("Cannot pop a small element");
    }
    _elements = st.gravel.support.jvm.ArrayExtensions.copyWithoutLast(_elements);
    return _last;
  }
View Full Code Here

Examples of st.gravel.support.compiler.jvm.JVMType

    }
  }

  @Override
  public JVMInstruction effectStack_(final JVMStack _aJVMStack) {
    final JVMType _p1;
    final JVMType _p2;
    final JVMType _p3;
    _p1 = _aJVMStack.pop();
    _p2 = _aJVMStack.pop();
    _p3 = _aJVMStack.pop();
    _aJVMStack.push_(_p1);
    _aJVMStack.push_(_p3);
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.