Class TypeDictionary

java.lang.Object
com.weirddev.testme.intellij.template.TypeDictionary

public class TypeDictionary extends Object
Date: 26/11/2016
Author:
Yaron Yamin
  • Method Summary

    Modifier and Type
    Method
    Description
    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 test
    boolean
    isTestSubject(com.intellij.psi.PsiClass psiClass)
     
    boolean
     
    void
     
    void
    setThrowSpecificExceptionTypes(boolean throwSpecificExceptionTypes)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 check
      psiClass - 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

      public Type getType(com.intellij.psi.PsiType type, int maxRecursionDepth, boolean shouldResolveAllMethods, Object element)
    • isAccessible

      public boolean isAccessible(com.intellij.psi.PsiMethod psiMethod)
    • logStatistics

      public void logStatistics()
    • isThrowSpecificExceptionTypes

      public boolean isThrowSpecificExceptionTypes()
    • setThrowSpecificExceptionTypes

      public void setThrowSpecificExceptionTypes(boolean throwSpecificExceptionTypes)