Home
last modified time | relevance | path

Searched refs:PsiClass (Results 1 – 25 of 30) sorted by relevance

12

/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/index/
DSmaliClassFinder.java35 import com.intellij.psi.PsiClass;
52 public PsiClass findClass(@NotNull String qualifiedName, @NotNull GlobalSearchScope scope) { in findClass()
62 public PsiClass[] findClasses(@NotNull String qualifiedName, @NotNull GlobalSearchScope scope) { in findClasses()
63 PsiClass cls = findClass(qualifiedName, scope); in findClasses()
65 return new PsiClass[] {cls}; in findClasses()
67 return PsiClass.EMPTY_ARRAY; in findClasses()
/external/smali/smalidea/src/test/java/org/jf/smalidea/
DClassReferenceTest.java38 import com.intellij.psi.PsiClass;
56 PsiClass psiClass = typeElement.resolve(); in testJavaReferenceFromSmali()
62 …Assert.assertEquals("java.lang.Object", ((PsiClass)resolveResult.getElement()).getQualifiedName()); in testJavaReferenceFromSmali()
67 …Assert.assertEquals("java.lang.Object", ((PsiClass)resolveResults[0].getElement()).getQualifiedNam… in testJavaReferenceFromSmali()
82 PsiClass psiClass = typeElement.resolve(); in testJavaReferenceFromSmaliInDumbMode()
105 Assert.assertEquals("blarg", ((PsiClass)resolveResult.getElement()).getQualifiedName()); in testSmaliReferenceFromSmali()
110 Assert.assertEquals("blarg", ((PsiClass)resolveResults[0].getElement()).getQualifiedName()); in testSmaliReferenceFromSmali()
DSmaliClassTest.java42 import com.intellij.psi.PsiClass;
85 PsiClass superClass = smaliClass.getSuperClass(); in testGetSuperclass()
110 PsiClass superClass = smaliClass.getSuperClass(); in testGetSuperclassForInterface()
133 PsiClass throwableClass = throwableType.resolve(); in testIsInheritor()
137 PsiClass exceptionClass = exceptionType.resolve(); in testIsInheritor()
141 PsiClass objectClass = objectType.resolve(); in testIsInheritor()
DClassMoveTest.java5 import com.intellij.psi.PsiClass;
45 …final PsiClass testClass = myJavaFacade.findClass(oldQualifiedName, GlobalSearchScope.allScope(get… in doMove()
50 new MoveClassesOrPackagesProcessor(getProject(), new PsiClass[] {testClass}, in doMove()
DSmaliImplementsExtendsTest.java34 import com.intellij.psi.PsiClass;
64 PsiClass resolvedSuper = extendsList.getReferencedTypes()[0].resolve(); in testNormalClass()
79 PsiClass resolvedInterface = implementsList.getReferencedTypes()[0].resolve(); in testNormalClass()
111 PsiClass resolvedInterface = extendsList.getReferencedTypes()[0].resolve(); in testInterface()
DClassRenameTest.java5 import com.intellij.psi.PsiClass;
42PsiClass testClass = myJavaFacade.findClass(oldQualifiedName, GlobalSearchScope.allScope(getProjec… in doRename()
DFieldRenameTest.java5 import com.intellij.psi.PsiClass;
40PsiClass testClass = myJavaFacade.findClass(containingClass, GlobalSearchScope.allScope(getProject… in doRename()
DMethodRenameTest.java5 import com.intellij.psi.PsiClass;
40PsiClass testClass = myJavaFacade.findClass(containingClass, GlobalSearchScope.allScope(getProject… in doRename()
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/impl/
DSmaliClassTypeElement.java89 @Nullable @Override public PsiClass resolve() { in resolve()
111 if (element instanceof PsiClass) { in bindToElement()
112 handleElementRename(((PsiClass) element).getQualifiedName()); in bindToElement()
119 if (!(element instanceof PsiClass)) { in isReferenceTo()
162 PsiClass psiClass = resolve(); in getQualifiedName()
170 PsiClass element = resolve(); in advancedResolve()
178 PsiClass element = resolve(); in multiResolve()
DSmaliClassType.java56 public PsiClass resolve() { in resolve()
62 if (resolved instanceof PsiClass) { in resolve()
63 return (PsiClass)resolved; in resolve()
70 PsiClass resolved = resolve(); in getClassName()
90 public PsiClass getElement() { in resolveGenerics()
142 PsiClass psiClass = resolve();
DSmaliClass.java68 public class SmaliClass extends SmaliStubBasedPsiElement<SmaliClassStub> implements PsiClass, Smali…
156 @Nullable @Override public PsiClass getSuperClass() { in getSuperClass()
160 @Override public PsiClass[] getInterfaces() { in getInterfaces()
164 @NotNull @Override public PsiClass[] getSupers() { in getSupers()
198 @NotNull @Override public PsiClass[] getInnerClasses() { in getInnerClasses()
199 return new PsiClass[0]; in getInnerClasses()
215 @NotNull @Override public PsiClass[] getAllInnerClasses() { in getAllInnerClasses()
216 return new PsiClass[0]; in getAllInnerClasses()
244 …@Nullable @Override public PsiClass findInnerClassByName(@NonNls String name, boolean checkBases) { in findInnerClassByName()
272 @Override public boolean isInheritor(@NotNull PsiClass baseClass, boolean checkDeep) { in isInheritor()
[all …]
DSmaliFieldReference.java35 import com.intellij.psi.PsiClass;
58 public PsiClass getContainingClass() { in getContainingClass()
63 PsiClass containingClass = containingClassReference.resolve(); in getContainingClass()
113 PsiClass containingClass = getContainingClass(); in resolve()
DSmaliMethodReference.java36 import com.intellij.psi.PsiClass;
85 public PsiClass getContainingClass() { in getContainingClass()
90 PsiClass containingClass = containingClassReference.resolve(); in getContainingClass()
134 PsiClass containingClass = getContainingClass(); in resolve()
DLightSmaliClassTypeElement.java84 @Nullable @Override public PsiClass resolve() { in resolve()
164 PsiClass element = resolve(); in advancedResolve()
172 PsiClass element = resolve(); in multiResolve()
DSmaliField.java90 @Nullable @Override public PsiClass getContainingClass() { in getContainingClass()
91 return (PsiClass)getParentByStub(); in getContainingClass()
/external/smali/smalidea/src/main/java/org/jf/smalidea/util/
DNameUtils.java60 PsiClass psiClass = ((PsiClassType)psiType).resolve(); in javaToSmaliType()
69 public static String javaToSmaliType(@NotNull PsiClass psiClass) { in javaToSmaliType()
74 PsiClass parent = psiClass.getContainingClass(); in javaToSmaliType()
131 …public static PsiClass resolveSmaliType(@NotNull Project project, @NotNull GlobalSearchScope scope, in resolveSmaliType()
141 PsiClass psiClass = facade.findClass(javaType, scope); in resolveSmaliType()
171 … public static PsiClass resolveSmaliType(@NotNull PsiElement element, @NotNull String smaliType) { in resolveSmaliType()
177 …public static PsiClass findInnerClass(@NotNull PsiClass outerClass, String innerText, JavaPsiFacad… in findInnerClass()
187 PsiClass psiClass = facade.findClass(nextInner, scope); in findInnerClass()
233 PsiClass resolvedType = resolveSmaliType(project, scope, smaliType); in resolveSmaliToJavaType()
252 PsiClass resolvedType = resolveSmaliType(element, smaliType); in resolveSmaliToPsiType()
/external/smali/smalidea/src/main/java/org/jf/smalidea/dexlib/
DSmalideaClassDef.java39 import com.intellij.psi.PsiClass;
58 private final PsiClass psiClass;
60 public SmalideaClassDef(PsiClass psiClass) { in SmalideaClassDef()
104 PsiClass superClass = psiClass.getSuperClass(); in getSuperclass()
113 PsiClass[] interfaces = psiClass.getInterfaces(); in getInterfaces()
118 for (PsiClass psiClass: interfaces) { in getInterfaces()
DSmalideaField.java35 import com.intellij.psi.PsiClass;
92 PsiClass containingClass = psiField.getContainingClass(); in getDefiningClass()
/external/smali/smalidea/src/main/java/org/jf/smalidea/findUsages/
DSmaliClassReferenceSearcher.java38 import com.intellij.psi.PsiClass;
54 if (!(element instanceof PsiClass)) { in processQuery()
61 String qualifiedName = ((PsiClass)element).getQualifiedName(); in processQuery()
63 return NameUtils.javaToSmaliType((PsiClass)element); in processQuery()
DSmaliFindUsagesProvider.java36 import com.intellij.psi.PsiClass;
43 return element instanceof PsiClass; in canFindUsagesFor()
/external/smali/smalidea/src/main/java/org/jf/smalidea/dexlib/analysis/
DSmalideaClassProvider.java5 import com.intellij.psi.PsiClass;
26PsiClass psiClass = NameUtils.resolveSmaliType(project, manager.getDefaultResolveScope(file), type… in getClassDef()
/external/dokka/core/src/main/kotlin/Analysis/
DJavaResolveExtension.kt51 fun PsiClass.getJavaClassDescriptor(resolutionFacade: ResolutionFacade = javaResolutionFacade()): C… in getJavaClassDescriptor() method
52 val psiClass = originalElement as? PsiClass ?: return null in getJavaClassDescriptor()
66 is PsiClass -> getJavaClassDescriptor(resolutionFacade) in getJavaMemberDescriptor()
/external/dokka/core/src/main/kotlin/Kotlin/
DKotlinAsJavaDocumentationBuilder.kt5 import com.intellij.psi.PsiClass
42 fun PsiClass.isVisibleInDocumentation(): Boolean { in PsiClass() method
/external/dokka/core/src/main/kotlin/Model/
DPackageDocs.kt6 import com.intellij.psi.PsiClass in <lambda>()
83 val psiClass = PsiTreeUtil.getChildOfType(psiFile, PsiClass::class.java)!! in <lambda>()
/external/dokka/core/src/main/kotlin/Java/
DJavaPsiDocumentationBuilder.kt21 is PsiClass -> element.qualifiedName in <lambda>()
87 fun appendClasses(packageNode: DocumentationNode, classes: Array<PsiClass>) { in appendFile()
205 fun PsiClass.build(): DocumentationNode { in appendFile() method
238 fun PsiClass.isException() = InheritanceUtil.isInheritor(this, "java.lang.Throwable") in appendFile() method

12