Search in sources :

Example 1 with SmalideaClassDef

use of org.jf.smalidea.dexlib.SmalideaClassDef in project smali by JesusFreke.

the class SmalideaClassProvider method getClassDef.

@Nullable
@Override
public ClassDef getClassDef(String type) {
    ResolveScopeManager manager = ResolveScopeManager.getInstance(project);
    PsiClass psiClass = NameUtils.resolveSmaliType(project, manager.getDefaultResolveScope(file), type);
    if (psiClass != null) {
        return new SmalideaClassDef(psiClass);
    }
    return null;
}
Also used : ResolveScopeManager(com.intellij.psi.impl.ResolveScopeManager) PsiClass(com.intellij.psi.PsiClass) SmalideaClassDef(org.jf.smalidea.dexlib.SmalideaClassDef) Nullable(javax.annotation.Nullable)

Aggregations

PsiClass (com.intellij.psi.PsiClass)1 ResolveScopeManager (com.intellij.psi.impl.ResolveScopeManager)1 Nullable (javax.annotation.Nullable)1 SmalideaClassDef (org.jf.smalidea.dexlib.SmalideaClassDef)1