Examples of PhpDocTag


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

    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

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

      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

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

      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

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

                && !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

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

        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

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

        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
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.