Package com.jetbrains.php.lang.psi.elements

Examples of com.jetbrains.php.lang.psi.elements.Method


        PsiReference psiReference = methodRef.getReference();
        if (null == psiReference) {
            return false;
        }

        Method method = getMultiResolvedMethod(psiReference);
        if (method == null) {
            return false;
        }

        PhpClass methodClass = method.getContainingClass();
        if(methodClass == null) {
            return false;
        }

        for (Method expectedMethod : expectedMethods) {

            // @TODO: its stuff from beginning times :)
            if(expectedMethod == null) {
                continue;
            }

            PhpClass containingClass = expectedMethod.getContainingClass();
            if (null != containingClass && expectedMethod.getName().equals(method.getName()) && isInstanceOf(methodClass, containingClass)) {
                return true;
            }
        }

        return false;
View Full Code Here


    }

    private List<Method> getCallToSignatureInterfaceMethods(PsiElement e, Collection<MethodMatcher.CallToSignature> signatures) {
        List<Method> methods = new ArrayList<Method>();
        for(MethodMatcher.CallToSignature signature: signatures) {
            Method method = getInterfaceMethod(e.getProject(), signature.getInstance(), signature.getMethod());
            if(method != null) {
                methods.add(method);
            }
        }
        return methods;
View Full Code Here

          result.addElement(new PhpLookupElement(modelName, PhpClassIndex.KEY, position.getProject(), PhpReferenceInsertHandler.getInstance()));


          for (PhpClass containingClass : containingClasses) {
            if (containingClass != null) {
              Method arr$[] = containingClass.getOwnMethods();
              int len$ = arr$.length;
              for (int i$ = 0; i$ < len$; i$++) {
                Method m = arr$[i$];
                if (!PhpUnitUtil.isTestMethod(m))
                  result.addElement(new PhpLookupElement(m.getName(), PhpFunctionIndex.KEY, position.getProject(), AppendSemiColonInsertHandler.getInstance()));
              }

            }
          }
View Full Code Here

TOP

Related Classes of com.jetbrains.php.lang.psi.elements.Method

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.