Examples of LightMethod


Examples of com.intellij.psi.impl.light.LightMethod

    return supportedAnnotation.equals(annotationName) && (type.isAssignableFrom(supportedClass));
  }

  @NotNull
  protected LightMethod prepareMethod(@NotNull PsiManager manager, @NotNull PsiMethod method, @NotNull PsiClass psiClass, @NotNull PsiElement psiNavigationTarget) {
    LightMethod lightMethod = new MyLightMethod(manager, method, psiClass);
    lightMethod.setNavigationElement(psiNavigationTarget);
    return lightMethod;
  }
View Full Code Here

Examples of com.intellij.psi.impl.light.LightMethod

        final Collection<PsiMethod> methodsToDelegate = collectAllMethods(fieldClass, objectClass);

        if (!methodsToDelegate.isEmpty()) {
          final PsiElementFactory elementFactory = JavaPsiFacade.getInstance(project).getElementFactory();
          for (PsiMethod psiMethod : methodsToDelegate) {
            LightMethod myLightMethod = generateDelegateMethod(psiClass, manager, elementFactory, psiMethod, fieldClassSubstitutor);
            target.add((Psi) myLightMethod);
          }
          UserMapKeys.addGeneralUsageFor(psiField);
        }
      }
View Full Code Here

Examples of com.intellij.psi.impl.light.LightMethod

    PsiManager manager = psiClass.getContainingFile().getManager();
    PsiElementFactory elementFactory = JavaPsiFacade.getInstance(psiClass.getProject()).getElementFactory();

    PsiMethod method = elementFactory.createMethodFromText(methodText, psiClass);

    LightMethod lightMethod = new MyLightMethod(manager, method, psiClass);
    lightMethod.setNavigationElement(navigationTarget);
    return lightMethod;
  }
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.