Examples of JvmDeclaredType


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

          public LaunchConfigurationInfo exec(final XtextResource it) throws Exception {
            LaunchConfigurationInfo _xblockexpression = null;
            {
              EList<EObject> _contents = it.getContents();
              Iterable<JvmDeclaredType> _filter = Iterables.<JvmDeclaredType>filter(_contents, JvmDeclaredType.class);
              final JvmDeclaredType file = IterableExtensions.<JvmDeclaredType>head(_filter);
              String _identifier = null;
              if (file!=null) {
                _identifier=file.getIdentifier();
              }
              String _findTask = BuildDSLLaunchShortcut.this.findTask(it, offset);
              _xblockexpression = new LaunchConfigurationInfo(project, _identifier, _findTask);
            }
            return _xblockexpression;
View Full Code Here

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

  }
 
  protected CharSequence _genText(final CodeRef codeRef) {
    StringConcatenation _builder = new StringConcatenation();
    _builder.append("\\protect\\lstinline�");
    JvmDeclaredType _element = codeRef.getElement();
    String _qualifiedName = _element.getQualifiedName();
    String _unescapeXdocChars = this.utils.unescapeXdocChars(_qualifiedName);
    String _escapeLatexChars = this.utils.escapeLatexChars(_unescapeXdocChars);
    _builder.append(_escapeLatexChars, "");
    _builder.append("�");
    return _builder;
View Full Code Here

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

   * <!-- end-user-doc -->
   * @generated
   */
  public void setElement(JvmDeclaredType newElement)
  {
    JvmDeclaredType oldElement = element;
    element = newElement;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, XdocPackage.CODE_REF__ELEMENT, oldElement, element));
  }
View Full Code Here

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

    return _builder;
  }
 
  protected CharSequence _genPlainText(final CodeRef cRef) {
    StringConcatenation _builder = new StringConcatenation();
    JvmDeclaredType _element = cRef.getElement();
    String _qualifiedName = _element.getQualifiedName();
    _builder.append(_qualifiedName, "");
    return _builder;
  }
View Full Code Here

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

        }
        if (!_matched) {
          if (feature instanceof JvmConstructor) {
            final JvmConstructor _jvmConstructor = (JvmConstructor)feature;
            _matched=true;
            JvmDeclaredType _declaringType = _jvmConstructor.getDeclaringType();
            JvmTypeReference _newTypeRef = this._jvmTypesBuilder.newTypeRef(_declaringType);
            _switchResult = _newTypeRef;
          }
        }
        if (!_matched) {
View Full Code Here

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

    boolean _and_1 = false;
    boolean _notEquals = (!Objects.equal(op, null));
    if (!_notEquals) {
      _and_1 = false;
    } else {
      JvmDeclaredType _declaringType = op.getDeclaringType();
      boolean _equals = Objects.equal(_declaringType, type);
      _and_1 = (_notEquals && _equals);
    }
    if (!_and_1) {
      _and = false;
View Full Code Here

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

  protected CharSequence _generate(final CodeRef cRef) {
    CharSequence _xblockexpression = null;
    {
      String _xifexpression = null;
      boolean _and = false;
      JvmDeclaredType _element = cRef.getElement();
      if (!(_element instanceof JvmAnnotationType)) {
        _and = false;
      } else {
        TextOrMarkup _altText = cRef.getAltText();
        boolean _equals = Objects.equal(_altText, null);
        _and = _equals;
      }
      if (_and) {
        _xifexpression = "@";
      }
      final String prefix = _xifexpression;
      JvmDeclaredType _element_1 = cRef.getElement();
      final String jDocLink = this.jdoc.genJavaDocLink(_element_1);
      JvmDeclaredType _element_2 = cRef.getElement();
      final String gitLink = this.git.gitLink(_element_2);
      JvmDeclaredType _element_3 = cRef.getElement();
      char _charAt = ".".charAt(0);
      String _qualifiedName = _element_3.getQualifiedName(_charAt);
      String _unescapeXdocChars = this.utils.unescapeXdocChars(_qualifiedName);
      final String fqn = this.utils.escapeHTMLChars(_unescapeXdocChars);
      CharSequence _xifexpression_1 = null;
      TextOrMarkup _altText_1 = cRef.getAltText();
      boolean _notEquals = (!Objects.equal(_altText_1, null));
      if (_notEquals) {
        TextOrMarkup _altText_2 = cRef.getAltText();
        _xifexpression_1 = this.generate(_altText_2);
      } else {
        JvmDeclaredType _element_4 = cRef.getElement();
        _xifexpression_1 = this.dottedSimpleName(_element_4);
      }
      final CharSequence text = _xifexpression_1;
      String _xifexpression_2 = null;
      boolean _notEquals_1 = (!Objects.equal(jDocLink, null));
      if (_notEquals_1) {
        StringConcatenation _builder = new StringConcatenation();
        _builder.append("<a class=\"jdoc\" href=\"");
        JvmDeclaredType _element_5 = cRef.getElement();
        String _genJavaDocLink = this.jdoc.genJavaDocLink(_element_5);
        _builder.append(_genJavaDocLink, "");
        _builder.append("\" title=\"View JavaDoc\"><abbr title=\"");
        _builder.append(fqn, "");
        _builder.append("\" >");
View Full Code Here

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

    return _xblockexpression;
  }
 
  public String dottedSimpleName(final JvmDeclaredType type) {
    String _xifexpression = null;
    JvmDeclaredType _declaringType = type.getDeclaringType();
    boolean _notEquals = (!Objects.equal(_declaringType, null));
    if (_notEquals) {
      JvmDeclaredType _declaringType_1 = type.getDeclaringType();
      String _dottedSimpleName = this.dottedSimpleName(_declaringType_1);
      String _plus = (_dottedSimpleName + ".");
      String _simpleName = type.getSimpleName();
      _xifexpression = (_plus + _simpleName);
    } else {
View Full Code Here

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

  protected CharSequence _genText(final CodeRef cRef) {
    CharSequence _xblockexpression = null;
    {
      String _xifexpression = null;
      boolean _and = false;
      JvmDeclaredType _element = cRef.getElement();
      if (!(_element instanceof JvmAnnotationType)) {
        _and = false;
      } else {
        TextOrMarkup _altText = cRef.getAltText();
        boolean _equals = Objects.equal(_altText, null);
        _and = _equals;
      }
      if (_and) {
        _xifexpression = "@";
      }
      final String prefix = _xifexpression;
      JvmDeclaredType _element_1 = cRef.getElement();
      final String jDocLink = this.jdoc.genJavaDocLink(_element_1);
      JvmDeclaredType _element_2 = cRef.getElement();
      final String gitLink = this.git.gitLink(_element_2);
      JvmDeclaredType _element_3 = cRef.getElement();
      char _charAt = ".".charAt(0);
      String _qualifiedName = _element_3.getQualifiedName(_charAt);
      String _unescapeXdocChars = this.utils.unescapeXdocChars(_qualifiedName);
      final String fqn = StringEscapeUtils.escapeHtml(_unescapeXdocChars);
      CharSequence _xifexpression_1 = null;
      TextOrMarkup _altText_1 = cRef.getAltText();
      boolean _notEquals = (!Objects.equal(_altText_1, null));
      if (_notEquals) {
        TextOrMarkup _altText_2 = cRef.getAltText();
        _xifexpression_1 = this.genNonParText(_altText_2);
      } else {
        JvmDeclaredType _element_4 = cRef.getElement();
        _xifexpression_1 = this.dottedSimpleName(_element_4);
      }
      final CharSequence text = _xifexpression_1;
      String _xifexpression_2 = null;
      boolean _notEquals_1 = (!Objects.equal(jDocLink, null));
      if (_notEquals_1) {
        StringConcatenation _builder = new StringConcatenation();
        _builder.append("<a class=\"jdoc\" href=\"");
        JvmDeclaredType _element_5 = cRef.getElement();
        String _genJavaDocLink = this.jdoc.genJavaDocLink(_element_5);
        _builder.append(_genJavaDocLink, "");
        _builder.append("\" title=\"");
        _builder.append(fqn, "");
        _builder.append("\">");
View Full Code Here

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

    return _xblockexpression;
  }
 
  public String dottedSimpleName(final JvmDeclaredType type) {
    String _xifexpression = null;
    JvmDeclaredType _declaringType = type.getDeclaringType();
    boolean _notEquals = (!Objects.equal(_declaringType, null));
    if (_notEquals) {
      JvmDeclaredType _declaringType_1 = type.getDeclaringType();
      String _dottedSimpleName = this.dottedSimpleName(_declaringType_1);
      String _plus = (_dottedSimpleName + ".");
      String _simpleName = type.getSimpleName();
      _xifexpression = (_plus + _simpleName);
    } else {
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.