Class ClassName
java.lang.Object
io.spring.initializr.generator.language.ClassName
Type reference abstraction to refer to a
Class that is not available on the
classpath.- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn the canonical name.Return the enclosing class name, ornullif this instance does not have an enclosing type.getName()Return the fully qualified name.Return the package name.Return the simple name.inthashCode()static ClassNamestatic ClassNameCreate aClassNamebased on the specified fully qualified name.toString()
-
Method Details
-
of
Create aClassNamebased on the specified fully qualified name. The format of the class name must follow Class.getName(), in particular inner classes should be separated by a$.- Parameters:
fqName- the fully qualified name of the class- Returns:
- a class name
-
of
- Parameters:
type- the class to wrap- Returns:
- a class name
-
getName
Return the fully qualified name.- Returns:
- the reflection target name
-
getPackageName
Return the package name.- Returns:
- the package name
-
getSimpleName
Return the simple name.- Returns:
- the simple name
-
getEnclosingType
Return the enclosing class name, ornullif this instance does not have an enclosing type.- Returns:
- the enclosing type, if any
-
getCanonicalName
Return the canonical name.- Returns:
- the canonical name
-
equals
-
hashCode
public int hashCode() -
toString
-