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
Static
intStatic
integerStatic
longStatic
shortStatic
byteStatic
floatStatic
doubleStatic
booleanStatic
charStatic
stringStatic
voidStatic
void_Static
dateStatic
localStatic
objectStatic
listStatic
setStatic
mapStatic
optionalStatic
referenceCreates a reference type for a class.
The class reference or arguments to create one
A new Type instance representing the class reference
Static
genericCreates a generic reference type.
The generic type
A new Type instance representing the generic reference
Static
arrayStatic
wildcardStatic
wildcardStatic
wildcardReturns 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.