Class JavaDomUtils

java.lang.Object
org.mybatis.generator.api.dom.java.JavaDomUtils

public class JavaDomUtils extends Object
  • Method Details

    • calculateTypeName

      public static String calculateTypeName(CompilationUnit compilationUnit, FullyQualifiedJavaType fqjt)
      Calculates type names for writing into generated Java. We try to use short names wherever possible. If the type requires an import, but has not been imported, then we need to use the fully qualified type name.
      Parameters:
      compilationUnit - the compilation unit being written
      fqjt - the type in question
      Returns:
      the full type name