Class ClassName
java.lang.Object
io.spring.initializr.generator.language.ClassName
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn the canonical name.@Nullable ClassNameReturn 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
-
getName
-
getPackageName
-
getSimpleName
-
getEnclosingType
Return the enclosing class name, ornullif this instance does not have an enclosing type.- Returns:
- the enclosing type, if any
-
getCanonicalName
-
equals
-
hashCode
-
toString
-