Class TypeDictionary
java.lang.Object
com.weirddev.testme.intellij.template.TypeDictionary
Date: 26/11/2016
- Author:
- Yaron Yamin
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypeDictionary
create
(com.intellij.psi.PsiClass srcClass, com.intellij.psi.PsiPackage targetPackage, boolean throwSpecificExceptionTypes) @Nullable Type
getType
(com.intellij.psi.PsiClass psiClass, int maxRecursionDepth, boolean shouldResolveAllMethods) @Nullable Type
getType
(com.intellij.psi.PsiType psiType, int maxRecursionDepth, boolean shouldResolveAllMethods) getType
(com.intellij.psi.PsiType type, int maxRecursionDepth, boolean shouldResolveAllMethods, Object element) boolean
isAccessible
(com.intellij.psi.PsiMethod psiMethod) boolean
isRelevant
(com.intellij.psi.PsiMethod psiMethod, @Nullable com.intellij.psi.PsiClass psiClass) check if method might be relevant for constructs in unit testboolean
isTestSubject
(com.intellij.psi.PsiClass psiClass) boolean
void
void
setThrowSpecificExceptionTypes
(boolean throwSpecificExceptionTypes)
-
Method Details
-
create
public static TypeDictionary create(com.intellij.psi.PsiClass srcClass, com.intellij.psi.PsiPackage targetPackage, boolean throwSpecificExceptionTypes) -
isRelevant
public boolean isRelevant(com.intellij.psi.PsiMethod psiMethod, @Nullable @Nullable com.intellij.psi.PsiClass psiClass) check if method might be relevant for constructs in unit test- Parameters:
psiMethod
- method to checkpsiClass
- owner class of method- Returns:
- true if method might be relevant for constructs in unit test
-
isTestSubject
public boolean isTestSubject(com.intellij.psi.PsiClass psiClass) -
getType
@Nullable public @Nullable Type getType(com.intellij.psi.PsiType psiType, int maxRecursionDepth, boolean shouldResolveAllMethods) -
getType
@Nullable public @Nullable Type getType(com.intellij.psi.PsiClass psiClass, int maxRecursionDepth, boolean shouldResolveAllMethods) -
getType
-
isAccessible
public boolean isAccessible(com.intellij.psi.PsiMethod psiMethod) -
logStatistics
public void logStatistics() -
isThrowSpecificExceptionTypes
public boolean isThrowSpecificExceptionTypes() -
setThrowSpecificExceptionTypes
public void setThrowSpecificExceptionTypes(boolean throwSpecificExceptionTypes)
-