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 TypeMethodDescriptionboolean
Return the canonical name.Return the enclosing class name, ornull
if this instance does not have an enclosing type.getName()
Return the fully qualified name.Return the package name.Return the simple name.int
hashCode()
static ClassName
static ClassName
Create aClassName
based on the specified fully qualified name.toString()
-
Method Details
-
of
Create aClassName
based 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, ornull
if 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
-