public class ClassUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
createNewClassQualifiedName(java.lang.String qualifiedName,
java.lang.String className) |
static java.lang.String |
extractClassName(java.lang.String fqName) |
static java.lang.String |
extractPackageName(java.lang.String className) |
static PsiClass |
findNonQualifiedClassByIndex(java.lang.String indexName,
PsiClass containingClass,
boolean jvmCompatible) |
static PsiClass |
findPsiClass(PsiManager manager,
java.lang.String name)
Looks for inner and anonymous classes by FQN in a javac notation ('pkg.Top$Inner').
|
static PsiClass |
findPsiClass(PsiManager manager,
java.lang.String name,
PsiClass parent,
boolean jvmCompatible) |
static PsiClass |
findPsiClass(PsiManager manager,
java.lang.String name,
PsiClass parent,
boolean jvmCompatible,
GlobalSearchScope scope) |
static PsiClass |
findPsiClassByJVMName(PsiManager manager,
java.lang.String jvmClassName)
Looks for inner and anonymous classes by internal name ('pkg/Top$Inner').
|
static void |
formatClassName(PsiClass aClass,
java.lang.StringBuilder buf) |
static java.lang.String |
getAsmMethodSignature(PsiMethod method) |
static java.lang.String |
getBinaryPresentation(PsiType psiType) |
static java.lang.String |
getClassObjectPresentation(PsiType psiType) |
static java.lang.String |
getJVMClassName(PsiClass aClass) |
static java.lang.String |
getVMParametersMethodSignature(PsiMethod method) |
static boolean |
isTopLevelClass(PsiClass aClass) |
static PsiDirectory |
sourceRoot(PsiDirectory containingDirectory) |
public static java.lang.String extractPackageName(java.lang.String className)
public static java.lang.String extractClassName(java.lang.String fqName)
public static java.lang.String createNewClassQualifiedName(java.lang.String qualifiedName, java.lang.String className)
public static PsiDirectory sourceRoot(PsiDirectory containingDirectory)
public static void formatClassName(PsiClass aClass, java.lang.StringBuilder buf)
public static PsiClass findNonQualifiedClassByIndex(java.lang.String indexName, PsiClass containingClass, boolean jvmCompatible)
public static PsiClass findPsiClass(PsiManager manager, java.lang.String name)
public static PsiClass findPsiClass(PsiManager manager, java.lang.String name, PsiClass parent, boolean jvmCompatible)
public static PsiClass findPsiClass(PsiManager manager, java.lang.String name, PsiClass parent, boolean jvmCompatible, GlobalSearchScope scope)
public static java.lang.String getJVMClassName(PsiClass aClass)
public static PsiClass findPsiClassByJVMName(PsiManager manager, java.lang.String jvmClassName)
public static boolean isTopLevelClass(PsiClass aClass)
public static java.lang.String getAsmMethodSignature(PsiMethod method)
public static java.lang.String getVMParametersMethodSignature(PsiMethod method)
public static java.lang.String getClassObjectPresentation(PsiType psiType)
public static java.lang.String getBinaryPresentation(PsiType psiType)