public class ProjectBytecodeAnalysis
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
EQUATIONS_LIMIT |
static Logger |
LOG |
static java.lang.String |
NULLABLE_METHOD |
static java.lang.String |
NULLABLE_METHOD_TRANSITIVITY |
Constructor and Description |
---|
ProjectBytecodeAnalysis(Project project) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<EKey> |
collectMethodKeys(PsiMethod method,
EKey primaryKey)
Collects all (starting) keys needed to infer all pieces of method annotations.
|
PsiAnnotation |
createContractAnnotation(java.lang.String contractValue) |
PsiAnnotation |
findInferredAnnotation(PsiModifierListOwner listOwner,
java.lang.String annotationFQN) |
PsiAnnotation [] |
findInferredAnnotations(PsiModifierListOwner listOwner) |
static ProjectBytecodeAnalysis |
getInstance(Project project) |
EKey |
getKey(PsiModifierListOwner owner) |
PsiAnnotation |
getNotNullAnnotation() |
PsiAnnotation |
getNullableAnnotation() |
public static final Logger LOG
public static final java.lang.String NULLABLE_METHOD
public static final java.lang.String NULLABLE_METHOD_TRANSITIVITY
public static final int EQUATIONS_LIMIT
public ProjectBytecodeAnalysis(Project project)
public static ProjectBytecodeAnalysis getInstance(Project project)
public PsiAnnotation findInferredAnnotation(PsiModifierListOwner listOwner, java.lang.String annotationFQN)
public PsiAnnotation [] findInferredAnnotations(PsiModifierListOwner listOwner)
public PsiAnnotation getNotNullAnnotation()
public PsiAnnotation getNullableAnnotation()
public PsiAnnotation createContractAnnotation(java.lang.String contractValue)
public EKey getKey(PsiModifierListOwner owner)
public static java.util.List<EKey> collectMethodKeys(PsiMethod method, EKey primaryKey)
method
- Psi method for which annotations are being inferredprimaryKey
- primary compressed key for this method