Writes the type declaration to the writer. This includes handling imports for non-primitive types and formatting generic type parameters.
The writer to write to
StaticintStaticintegerStaticlongStaticshortStaticbyteStaticfloatStaticdoubleStaticbooleanStaticcharStaticstringStaticvoidStaticvoid_StaticdateStaticlocalStaticobjectStaticlistStaticsetStaticmapStaticoptionalStaticreferenceCreates a reference type for a class.
The class reference or arguments to create one
A new Type instance representing the class reference
StaticgenericCreates a generic reference type.
The generic type
A new Type instance representing the generic reference
StaticarrayStaticwildcardStaticwildcardStaticwildcardReturns the string representation of the AST node. This method creates a new Writer instance and writes the node's content to it.
The string representation of the AST node
Represents a Java type in the AST. This class handles the generation of all Java types including primitive types, wrapper types, collections, arrays, and custom types.