Package org.eclipse.php.internal.core.compiler.ast.nodes

Examples of org.eclipse.php.internal.core.compiler.ast.nodes.PHPDocTag


    // After first loop, non-null entries in the following two lists are
    // missing and need to be inherited:
    List<String> parameterNames = initParameterNames();
    List<String> exceptionNames = new ArrayList<String>();

    PHPDocTag deprecatedTag = null;
    PHPDocTag returnTag = null;
    PHPDocTag namespaceTag = null;
    List<PHPDocTag> parameters = new ArrayList<PHPDocTag>();
    List<PHPDocTag> exceptions = new ArrayList<PHPDocTag>();
    List<PHPDocTag> versions = new ArrayList<PHPDocTag>();
    List<PHPDocTag> authors = new ArrayList<PHPDocTag>();
    List<PHPDocTag> sees = new ArrayList<PHPDocTag>();
View Full Code Here


      fExceptionDescriptions.put(simpleName, description);
      fBuf = description;

      List tags = Arrays.asList(fJavadoc.getTags());
      for (Iterator iter = tags.iterator(); iter.hasNext();) {
        PHPDocTag tag = (PHPDocTag) iter.next();
        if (PHPDocTag.THROWS == tag.getTagKind()) {
          List fragments = Arrays.asList(tag.getReferences());
          if (fragments.size() > 0) {
            Object first = fragments.get(0);
            if (first instanceof Identifier) {
              String name = ((Identifier) first).getName();
              if (name.equals(simpleName)) {
View Full Code Here

      return;

    handleBlockTagTitle(title);

    for (Iterator iter = tags.iterator(); iter.hasNext();) {
      PHPDocTag tag = (PHPDocTag) iter.next();
      fBuf.append(BlOCK_TAG_ENTRY_START);
      if (PHPDocTag.SEE == tag.getTagKind()) {
        handleSeeTag(tag);
      } else {
        handleContentElements(tag);
      }
      doWorkAround();
View Full Code Here

    fBuf.append(BlOCK_TAG_ENTRY_END);
  }

  private void handleBlockTags(List tags) {
    for (Iterator iter = tags.iterator(); iter.hasNext();) {
      PHPDocTag tag = (PHPDocTag) iter.next();
      if (tag.getTagKind() == PHPDocTag.INHERITDOC) {
        continue;
      } else if (tag.getTagKind() == PHPDocTag.VAR) {
        handleBlockTagTitle("Type"); //$NON-NLS-1$
      } else {
        handleBlockTagTitle(PHPDocTag.getTagKind(tag.getTagKind()));
      }
      fBuf.append(BlOCK_TAG_ENTRY_START);
      if (tag.getTagKind() == PHPDocTag.LINK) {
        handleLinkTag(tag);
      } else {
        handleContentElements(tag);
      }
      doWorkAround();
View Full Code Here

      return;

    handleBlockTagTitle(PHPDocumentationMessages.JavaDoc2HTMLTextReader_throws_section);

    for (Iterator iter = tags.iterator(); iter.hasNext();) {
      PHPDocTag tag = (PHPDocTag) iter.next();
      fBuf.append(BlOCK_TAG_ENTRY_START);
      handleThrowsTag(tag);
      doWorkAround();
      fBuf.append(BlOCK_TAG_ENTRY_END);
    }
View Full Code Here

      return;

    handleBlockTagTitle(PHPDocumentationMessages.JavaDoc2HTMLTextReader_parameters_section);

    for (Iterator iter = tags.iterator(); iter.hasNext();) {
      PHPDocTag tag = (PHPDocTag) iter.next();
      handleParamTag(tag);
    }
    for (int i = 0; i < parameterDescriptions.length; i++) {
      CharSequence description = parameterDescriptions[i];
      String name = (String) parameterNames.get(i);
View Full Code Here

                && !lastLineIsBlank) {
              insertNewLineForPHPDoc();
              appendToBuffer(" "); //$NON-NLS-1$
            }
            for (int i = 0; i < tags.length; i++) {
              PHPDocTag phpDocTag = tags[i];
              boolean insertTag = true;
              String[] words = phpDocTag.getDescTexts();

              if ((i == tags.length - 1)
                  && !this.preferences.comment_new_lines_at_javadoc_boundaries) {
                words = getNonblankWords(words);
              }
              commentWords = new ArrayList<String>();

              if (getNonblankWords(words).length == 0) {
                boolean hasRefs = phpDocTag
                    .getReferencesWithOrigOrder().length != 0;
                int nbLines = words.length;
                // https://bugs.eclipse.org/bugs/show_bug.cgi?id=433938
                if (!hasRefs && nbLines > 1) {
                  nbLines--;
View Full Code Here

        if (docBlocks[i] == null) {
          continue;
        }
        PHPDocTag[] tags = docBlocks[i].getTags();
        for (int j = 0; j < tags.length; j++) {
          PHPDocTag tag = tags[j];
          if (tag.getTagKind() == PHPDocTag.PARAM) {
            SimpleReference[] refs = tag.getReferences();
            if (refs != null
                && refs.length > 1
                && refs[1]
                    .getName()
                    .equals(type.getElementName()
View Full Code Here

        public boolean visit(PHPMethodDeclaration s) throws Exception {
            if (s.getName().equals(method)) {
                PHPDocBlock docs = s.getPHPDoc();
                PHPDocTag[] returnTags = docs.getTags(PHPDocTagKinds.RETURN);
                if (returnTags.length == 1) {
                    PHPDocTag tag = returnTags[0];

                    if (tag.getReferences().length == 1) {
                        SimpleReference ref = tag.getReferences()[0];
                        className = ref.getName();
                        return false;
                    }
                }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.compiler.ast.nodes.PHPDocTag

Copyright © 2018 www.massapicom. 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.