Examples of findClass()


Examples of ch.nerdin.generators.testdata.framework.analyzer.ReturnTypeAnalyzers.findClass()

    private Class<?>[] findReturnType(Method method) {
        Class<?>[] foundClass = null;
        Iterator<ReturnTypeAnalyzers> iter = returnTypeAnalyzers.iterator();
        while (foundClass == null && iter.hasNext()) {
            ReturnTypeAnalyzers analyzer = iter.next();
            foundClass = analyzer.findClass(method);
        }

        return foundClass;
    }
View Full Code Here

Examples of com.google.code.vimsztool.omni.PackageInfo.findClass()

      return "";
    }
    if (nameStart.indexOf(".") > -1) {
      classNameList=packageInfo.findClassByQualifiedName(nameStart,ignoreCase);
    } else {
      classNameList=packageInfo.findClass(nameStart,ignoreCase);
    }
    Collections.sort(classNameList, new ClassNameComparator());
    StringBuilder sb=new StringBuilder();
    for (String name : classNameList) {
      if (name.indexOf("$") > -1 ) continue;
View Full Code Here

Examples of com.intellij.psi.JavaPsiFacade.findClass()

      if (modifierList != null) {
        for (PsiAnnotation psiAnnotation : modifierList.getAnnotations()) {
          if (psiAnnotation != null && psiAnnotation.getQualifiedName() != null) {
            JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(element.getProject());
            PsiClass psiClass = psiFacade.findClass(psiAnnotation.getQualifiedName(),
                GlobalSearchScope.projectScope(element.getProject()));

            if (hasAnnotation(psiClass, CLASS_QUALIFIER)) {
              qualifiedClasses.add(psiAnnotation.getQualifiedName());
            }
View Full Code Here

Examples of com.intellij.psi.JavaPsiFacade.findClass()

    PsiClassType psiClassType = (PsiClassType) psiFieldType;
    Project project = psiElement.getProject();
    JavaPsiFacade javaPsiFacade = JavaPsiFacade.getInstance(project);
    GlobalSearchScope globalSearchScope = GlobalSearchScope.allScope(project);

    PsiClass lazyClass = javaPsiFacade.findClass(CLASS_LAZY, globalSearchScope);
    PsiClass providerClass = javaPsiFacade.findClass(CLASS_PROVIDER, globalSearchScope);

    PsiClassType.ClassResolveResult classResolveResult = psiClassType.resolveGenerics();
    PsiClass outerClass = classResolveResult.getElement();
View Full Code Here

Examples of com.intellij.psi.JavaPsiFacade.findClass()

    Project project = psiElement.getProject();
    JavaPsiFacade javaPsiFacade = JavaPsiFacade.getInstance(project);
    GlobalSearchScope globalSearchScope = GlobalSearchScope.allScope(project);

    PsiClass lazyClass = javaPsiFacade.findClass(CLASS_LAZY, globalSearchScope);
    PsiClass providerClass = javaPsiFacade.findClass(CLASS_PROVIDER, globalSearchScope);

    PsiClassType.ClassResolveResult classResolveResult = psiClassType.resolveGenerics();
    PsiClass outerClass = classResolveResult.getElement();

    // If Lazy<Foo> or Provider<Foo>, extract Foo as the interesting type.
View Full Code Here

Examples of com.intellij.psi.JavaPsiFacade.findClass()

    public static boolean isLibraryPresent(@Nullable Module module) {
        if (module == null) {
            return false;
        }
        JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(module.getProject());
        return psiFacade.findClass(Constants.WICKET_COMPONENT, WicketSearchScope.classInModuleWithDependenciesAndLibraries(module)) != null;
    }

    /**
     * @param element
     * @return true if element has WicketForgeFacet or is from library
View Full Code Here

Examples of com.intellij.psi.JavaPsiFacade.findClass()

    }
  }

  private void performSearch(final SearchScope searchScope, final String subscribeClassName) {
    JavaPsiFacade javaPsiFacade = JavaPsiFacade.getInstance(myProject);
    PsiClass subscribePsiClass = javaPsiFacade.findClass(subscribeClassName,
        GlobalSearchScope.allScope(myProject));
    if (subscribePsiClass == null) {
      // the guava or otto library isn't available in this project so do nothing
      return;
    }
View Full Code Here

Examples of com.intellij.psi.JavaPsiFacade.findClass()

          eventClasses = new HashSet<String>(allEventClasses);
        }
        JavaPsiFacade javaPsiFacade = JavaPsiFacade.getInstance(myProject);
        DaemonCodeAnalyzer codeAnalyzer = DaemonCodeAnalyzer.getInstance(myProject);
        for (String eventClass : eventClasses) {
          PsiClass eventPsiClass = javaPsiFacade.findClass(eventClass,
                GlobalSearchScope.allScope(myProject));
          if (eventPsiClass == null) continue;
          PsiFile psiFile = eventPsiClass.getContainingFile();
          if (psiFile == null) continue;
          codeAnalyzer.restart(psiFile);
View Full Code Here

Examples of com.intellij.psi.JavaPsiFacade.findClass()

  @Nullable
  public PsiMethod getBusPostMethod(Project project) {
    JavaPsiFacade javaPsiFacade = JavaPsiFacade.getInstance(project);
    GlobalSearchScope globalSearchScope = GlobalSearchScope.allScope(project);

    PsiClass busClass = javaPsiFacade.findClass(getBusClassName(), globalSearchScope);
    if (busClass != null) {
      for (PsiMethod psiMethod : busClass.getMethods()) {
        if (psiMethod.getName().equals("post")) {
          return psiMethod;
        }
View Full Code Here

Examples of com.intellij.psi.PsiManager.findClass()

    final String lineString = fileAndLine.substring(colonIndex + 1);
    try{
      final int lineNumber = Integer.parseInt(lineString);
      final PsiManager manager = PsiManager.getInstance(myProject);
      PsiClass aClass = manager.findClass(className, GlobalSearchScope.allScope(myProject));
      if (aClass == null) return null;
      final PsiFile file = (PsiFile) aClass.getContainingFile().getNavigationElement();
      if (file == null) return null;

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