public class DefaultJavaEvaluator extends JavaEvaluator
| Constructor and Description |
|---|
DefaultJavaEvaluator(com.intellij.openapi.project.Project project,
Project lintProject) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areSignaturesEqual(com.intellij.psi.PsiMethod method1,
com.intellij.psi.PsiMethod method2) |
boolean |
extendsClass(com.intellij.psi.PsiClass cls,
java.lang.String className,
boolean strict) |
com.intellij.psi.PsiAnnotation |
findAnnotation(com.intellij.psi.PsiModifierListOwner listOwner,
java.lang.String... annotationNames) |
com.intellij.psi.PsiAnnotation |
findAnnotationInHierarchy(com.intellij.psi.PsiModifierListOwner listOwner,
java.lang.String... annotationNames) |
com.intellij.psi.PsiClass |
findClass(java.lang.String qualifiedName) |
java.lang.String |
findJarPath(com.intellij.psi.PsiElement element)
Try to determine the path to the .jar file containing the element, if applicable
|
java.lang.String |
findJarPath(org.jetbrains.uast.UElement element)
Try to determine the path to the .jar file containing the element, if applicable
|
com.intellij.psi.PsiAnnotation[] |
getAllAnnotations(com.intellij.psi.PsiModifierListOwner owner,
boolean inHierarchy) |
com.intellij.psi.PsiClassType |
getClassType(com.intellij.psi.PsiClass cls) |
com.android.builder.model.Dependencies |
getDependencies() |
java.lang.String |
getInternalDescription(com.intellij.psi.PsiMethod method,
boolean includeName,
boolean includeReturn)
Computes the internal JVM description of the given method.
|
java.lang.String |
getInternalName(com.intellij.psi.PsiClass psiClass)
Computes the internal class name of the given class.
|
java.lang.String |
getInternalName(com.intellij.psi.PsiClassType psiClassType) |
com.intellij.psi.PsiPackage |
getPackage(com.intellij.psi.PsiElement node) |
com.intellij.psi.PsiPackage |
getPackage(org.jetbrains.uast.UElement node) |
static java.lang.String |
getPrimitiveSignature(java.lang.String typeName) |
boolean |
implementsInterface(com.intellij.psi.PsiClass cls,
java.lang.String interfaceName,
boolean strict) |
boolean |
inheritsFrom(com.intellij.psi.PsiClass cls,
java.lang.String className,
boolean strict)
Checks whether the class extends a super class or implements a given interface.
|
erasure, findOwnerLibrary, getLibrary, getLibrary, getLibrary, getPackage, getParameterCount, getSuperMethod, isAbstract, isFinal, isInherited, isInherited, isInherited, isMemberInClass, isMemberInSubClassOf, isPrivate, isPublic, isStatic, methodMatches, parameterHasType, parametersMatch, resolve, typeMatchespublic DefaultJavaEvaluator(com.intellij.openapi.project.Project project,
Project lintProject)
@Nullable public com.android.builder.model.Dependencies getDependencies()
getDependencies in class JavaEvaluatorpublic boolean extendsClass(@Nullable
com.intellij.psi.PsiClass cls,
@NonNull
java.lang.String className,
boolean strict)
extendsClass in class JavaEvaluatorpublic boolean implementsInterface(@NonNull
com.intellij.psi.PsiClass cls,
@NonNull
java.lang.String interfaceName,
boolean strict)
implementsInterface in class JavaEvaluatorpublic boolean inheritsFrom(@NonNull
com.intellij.psi.PsiClass cls,
@NonNull
java.lang.String className,
boolean strict)
JavaEvaluatorJavaEvaluator.extendsClass(PsiClass, String, boolean) and JavaEvaluator.implementsInterface(PsiClass, String, boolean).inheritsFrom in class JavaEvaluator@Nullable
public com.intellij.psi.PsiClass findClass(@NonNull
java.lang.String qualifiedName)
findClass in class JavaEvaluator@Nullable
public com.intellij.psi.PsiClassType getClassType(@Nullable
com.intellij.psi.PsiClass cls)
getClassType in class JavaEvaluator@NonNull
public com.intellij.psi.PsiAnnotation[] getAllAnnotations(@NonNull
com.intellij.psi.PsiModifierListOwner owner,
boolean inHierarchy)
getAllAnnotations in class JavaEvaluator@Nullable
public com.intellij.psi.PsiAnnotation findAnnotationInHierarchy(@NonNull
com.intellij.psi.PsiModifierListOwner listOwner,
@NonNull
java.lang.String... annotationNames)
findAnnotationInHierarchy in class JavaEvaluator@Nullable
public com.intellij.psi.PsiAnnotation findAnnotation(@Nullable
com.intellij.psi.PsiModifierListOwner listOwner,
@NonNull
java.lang.String... annotationNames)
findAnnotation in class JavaEvaluatorpublic boolean areSignaturesEqual(@NonNull
com.intellij.psi.PsiMethod method1,
@NonNull
com.intellij.psi.PsiMethod method2)
areSignaturesEqual in class JavaEvaluator@Nullable
public java.lang.String findJarPath(@NonNull
com.intellij.psi.PsiElement element)
JavaEvaluatorfindJarPath in class JavaEvaluator@Nullable
public java.lang.String findJarPath(@NonNull
org.jetbrains.uast.UElement element)
JavaEvaluatorfindJarPath in class JavaEvaluator@Nullable
public com.intellij.psi.PsiPackage getPackage(@NonNull
com.intellij.psi.PsiElement node)
getPackage in class JavaEvaluator@Nullable
public com.intellij.psi.PsiPackage getPackage(@NonNull
org.jetbrains.uast.UElement node)
getPackage in class JavaEvaluator@Nullable
public java.lang.String getInternalName(@NonNull
com.intellij.psi.PsiClassType psiClassType)
getInternalName in class JavaEvaluator@Nullable
public java.lang.String getInternalName(@NonNull
com.intellij.psi.PsiClass psiClass)
getInternalName in class JavaEvaluatorpsiClass - the class to look up the internal name forClassContext.getInternalName(String)@Nullable
public java.lang.String getInternalDescription(@NonNull
com.intellij.psi.PsiMethod method,
boolean includeName,
boolean includeReturn)
foo(ILjava/lang/String;):V.getInternalDescription in class JavaEvaluatormethod - the method to look up the description forincludeName - whether the name should be includedincludeReturn - whether the return type should be included@Nullable public static java.lang.String getPrimitiveSignature(java.lang.String typeName)