Class FullyQualifiedKotlinType

java.lang.Object
org.mybatis.generator.api.dom.kotlin.FullyQualifiedKotlinType

public class FullyQualifiedKotlinType extends Object
  • Field Details

    • AUTOMATIC_KOTLIN_PACKAGES

      private static final Set<String> AUTOMATIC_KOTLIN_PACKAGES
    • packageName

      private String packageName
    • typeArguments

      private final List<FullyQualifiedKotlinType> typeArguments
    • shortNameWithoutTypeArguments

      private String shortNameWithoutTypeArguments
    • isExplicitlyImported

      private boolean isExplicitlyImported
  • Constructor Details

    • FullyQualifiedKotlinType

      public FullyQualifiedKotlinType(String fullTypeSpecification)
  • Method Details

    • getPackageName

      public String getPackageName()
    • getShortNameWithoutTypeArguments

      public String getShortNameWithoutTypeArguments()
    • getShortNameWithTypeArguments

      public String getShortNameWithTypeArguments()
    • getTypeArguments

      public List<FullyQualifiedKotlinType> getTypeArguments()
    • addTypeArgument

      public void addTypeArgument(FullyQualifiedKotlinType typeArgument)
    • getImportList

      public Set<String> getImportList()
      Returns a list of Strings that are the fully qualified names of this type, and any generic type argument associated with this type.
      Returns:
      the import list
    • parse

      private void parse(String fullTypeSpecification)
    • simpleParse

      private void simpleParse(String typeSpecification)
    • genericParse

      private void genericParse(String genericSpecification)
    • getPackage

      private static String getPackage(String baseQualifiedName)
      Returns the package name of a fully qualified type.

      This method calculates the package as the part of the fully qualified name up to, but not including, the last element. Therefore, it does not support fully qualified inner classes. Not totally fool proof, but correct in most instances.

      Parameters:
      baseQualifiedName - the base qualified name
      Returns:
      the package