Examples of PHPDocTag


Examples of com.jetbrains.php.lang.documentation.phpdoc.psi.tags.PhpDocTag

        }
    }

    @Nullable
    private PhpClass getValidAnnotationClass(PsiElement psiElement) {
        PhpDocTag phpDocTag = PsiTreeUtil.getParentOfType(psiElement, PhpDocTag.class);
        if(phpDocTag == null) {
            return null;
        }

        return AnnotationUtil.getAnnotationReference(phpDocTag);
View Full Code Here

Examples of com.jetbrains.php.lang.documentation.phpdoc.psi.tags.PhpDocTag

        if(parameter.getAnnotationClass() != null) {
            return;
        }

        PhpDocTag phpDocTag = parameter.getPhpDocTag();
        Collection<PhpClass> phpClasses = AnnotationUtil.getPossibleImportClasses(phpDocTag);
        if(phpClasses.size() == 0) {
            return;
        }

        String tagName = phpDocTag.getName();
        if(StringUtils.isBlank(tagName)) {
            return;
        }

        PsiElement firstChild = phpDocTag.getFirstChild();
         /* @TODO: not working  firstChild.getNode().getElementType() == PhpDocElementTypes.DOC_TAG_NAME */
        if(firstChild == null) {
            return;
        }

View Full Code Here

Examples of com.jetbrains.php.lang.documentation.phpdoc.psi.tags.PhpDocTag

            PsiElement psiElement = parameters.getOriginalPosition();
            if(psiElement == null | !PluginUtil.isEnabled(psiElement)) {
                return;
            }

            PhpDocTag phpDocTag = PsiTreeUtil.getParentOfType(parameters.getOriginalPosition(), PhpDocTag.class);
            PhpClass phpClass = AnnotationUtil.getAnnotationReference(phpDocTag);
            if(phpClass == null) {
                return;
            }
View Full Code Here

Examples of com.jetbrains.php.lang.documentation.phpdoc.psi.tags.PhpDocTag

            PsiElement propertyName = PhpElementsUtil.getPrevSiblingOfPatternMatch(phpDocString, PlatformPatterns.psiElement(PhpDocTokenTypes.DOC_IDENTIFIER));
            if(propertyName == null) {
                return;
            }

            PhpDocTag phpDocTag = PsiTreeUtil.getParentOfType(parameters.getOriginalPosition(), PhpDocTag.class);
            PhpClass phpClass = AnnotationUtil.getAnnotationReference(phpDocTag);
            if(phpClass == null) {
                return;
            }
View Full Code Here

Examples of com.jetbrains.php.lang.documentation.phpdoc.psi.tags.PhpDocTag

            if(psiElement == null || !PluginUtil.isEnabled(psiElement)) {
                return;
            }

            PhpDocTag phpDocTag = PsiTreeUtil.getParentOfType(psiElement, PhpDocTag.class);
            if(phpDocTag == null) {
                return;
            }

            PhpClass phpClass = AnnotationUtil.getAnnotationReference(phpDocTag);
View Full Code Here

Examples of com.jetbrains.php.lang.documentation.phpdoc.psi.tags.PhpDocTag

     * @param psiElement origin DOC_IDENTIFIER psi element
     * @param targets Goto targets
     */
    private void addPropertyGoto(PsiElement psiElement, List<PsiElement> targets) {

        PhpDocTag phpDocTag = PsiTreeUtil.getParentOfType(psiElement, PhpDocTag.class);
        if(phpDocTag == null) {
            return;
        }

        PhpClass phpClass = AnnotationUtil.getAnnotationReference(phpDocTag);
View Full Code Here

Examples of com.jetbrains.php.lang.documentation.phpdoc.psi.tags.PhpDocTag

     *
     */
    @Nullable
    public static PhpClass getClassByContext(PsiElement psiElement, String className) {

        PhpDocTag phpDocTag = PsiTreeUtil.getParentOfType(psiElement, PhpDocTag.class);
        if(phpDocTag == null) {
            return null;
        }

        Map<String, String> map = AnnotationUtil.getUseImportMap(phpDocTag);
View Full Code Here

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

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

      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

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

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