Class FullyQualifiedJavaType
java.lang.Object
org.mybatis.generator.api.dom.java.FullyQualifiedJavaType
- All Implemented Interfaces:
Comparable<FullyQualifiedJavaType>
- Direct Known Subclasses:
PrimitiveTypeWrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe fully qualified name without any generic arguments.private StringThe short name without any generic arguments.private static FullyQualifiedJavaTypeprivate booleanprivate static FullyQualifiedJavaTypeprivate static FullyQualifiedJavaTypeprivate booleanprivate booleanprivate static FullyQualifiedJavaTypeprivate static FullyQualifiedJavaTypeprivate booleanprivate static final Stringprivate static FullyQualifiedJavaTypeprivate Stringprivate booleanprivate PrimitiveTypeWrapperprivate static FullyQualifiedJavaTypeprivate final List<FullyQualifiedJavaType> private boolean -
Constructor Summary
ConstructorsConstructorDescriptionFullyQualifiedJavaType(String fullTypeSpecification) Use this constructor to construct a generic type with the specified type parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate StringcalculateActualImport(String name) intcompareTo(FullyQualifiedJavaType other) booleanprivate voidgenericParse(String genericSpecification) static FullyQualifiedJavaTypestatic FullyQualifiedJavaTypestatic FullyQualifiedJavaTypeReturns the fully qualified name - including any generic type parameters.static FullyQualifiedJavaTypeReturns a list of Strings that are the fully qualified names of this type, and any generic type argument associated with this type.static FullyQualifiedJavaTypestatic FullyQualifiedJavaTypestatic FullyQualifiedJavaTypestatic FullyQualifiedJavaTypestatic FullyQualifiedJavaTypestatic FullyQualifiedJavaTypeprivate static StringgetPackage(String baseQualifiedName) Returns the package name of a fully qualified type.static FullyQualifiedJavaTypeinthashCode()booleanisArray()booleanbooleanprivate voidprivate voidsimpleParse(String typeSpecification) toString()
-
Field Details
-
JAVA_LANG
- See Also:
-
intInstance
-
stringInstance
-
booleanPrimitiveInstance
-
objectInstance
-
dateInstance
-
criteriaInstance
-
generatedCriteriaInstance
-
baseShortName
The short name without any generic arguments. -
baseQualifiedName
The fully qualified name without any generic arguments. -
explicitlyImported
private boolean explicitlyImported -
packageName
-
primitive
private boolean primitive -
isArray
private boolean isArray -
primitiveTypeWrapper
-
typeArguments
-
wildcardType
private boolean wildcardType -
boundedWildcard
private boolean boundedWildcard -
extendsBoundedWildcard
private boolean extendsBoundedWildcard
-
-
Constructor Details
-
FullyQualifiedJavaType
Use this constructor to construct a generic type with the specified type parameters.- Parameters:
fullTypeSpecification- the full type specification
-
-
Method Details
-
isExplicitlyImported
public boolean isExplicitlyImported() -
getFullyQualifiedName
Returns the fully qualified name - including any generic type parameters.- Returns:
- Returns the fullyQualifiedName.
-
getFullyQualifiedNameWithoutTypeParameters
-
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
-
calculateActualImport
-
getPackageName
-
getShortName
-
getShortNameWithoutTypeArguments
-
equals
-
hashCode
public int hashCode() -
toString
-
isPrimitive
public boolean isPrimitive() -
getPrimitiveTypeWrapper
-
getIntInstance
-
getNewListInstance
-
getNewHashMapInstance
-
getNewArrayListInstance
-
getNewIteratorInstance
-
getStringInstance
-
getBooleanPrimitiveInstance
-
getObjectInstance
-
getDateInstance
-
getCriteriaInstance
-
getGeneratedCriteriaInstance
-
compareTo
- Specified by:
compareToin interfaceComparable<FullyQualifiedJavaType>
-
addTypeArgument
-
parse
-
simpleParse
-
genericParse
-
getPackage
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
-
isArray
public boolean isArray() -
getTypeArguments
-