The boolean
primitive type.
The double
primitive type.
The float
primitive type.
The type of java.lang.Object
.
The short
primitive type.
A special type that always renders to the type of the class it is encountered in.
The wildcard type of <? extends Object>
, also known as <?>
.
Get a nested type within this reference type.
Return the type corresponding to the given class.
Return a type corresponding to a class with the given name.
Return the erased type of a class definition.
The primitive-boxed version of this type.
The element type, if this an array (otherwise null
).
Get the erased type corresponding to this type definition.
The erasure of this type.
Get a generic type for this type definition, where the type arguments are the same as the type parameters of this
type (as defined at the time this method is called).
Get a nested type within this reference type.
This type, with the given generic type arguments.
This type, with the given generic type arguments.
This type, with the given generic type arguments.
Get the type arguments of this type.
Get the type arguments defined thus far.
Return a type corresponding to a class with the given name.
Return the type corresponding to the given class.
Get a JType
that corresponds to the given TypeMirror
for annotation processors.
Return the erased type of a class definition.
The primitive-unboxed version of this type.
Get a wildcard that extends this type.
Get a wildcard that this type extends.
Add an extends
type to this type.
Add an extends
bound to this parameter.
Add one or more implements
type(s) to this type.
Add a type import to this source file.
Get a type-testing expression using the instanceof
operator.
Insert an object construction statement at this point.
Get an expression to construct a new inner class instance of this instance expression.
Insert an object construction statement for an anonymous class at this point.
Construct a new anonymous subclass of the given type, which must be an inner class of the type of this
expression.
Add a super
bound to this parameter.
Get a @throws
doc comment block.
Set the named property of this annotation to an array of nested annotations of the given type.
Set the "value" property of this annotation to an array of nested annotations of the given type.
Set the named property of this annotation to a nested annotation of the given type.
Set the "value" property of this annotation to a nested annotation of the given type.
Insert a type-qualified static method invocation at this point.
Generate a method call expression to a method on the given static type.
Get an expression which is a cast of this expression to the given type.
Add a field to this type.
Add a field to this type.
Insert a "for-each" style for
loop at this point.
Add a catch
for an ignored exception.
Add a static member import to this source file.
Add an inline @link
to a constructor.
Add an inline @link
to a field of a type.
Add an inline @link
to a method.
Add an inline @link
to a type.
Add a method to this type.
Add another type option to this catch branch.
Add a declared-type parameter to this lambda.
Add a parameter to this method.
Add a parameter to this method.
Insert a local variable declaration at this point with a generated name.
Add a type argument to this call.
This type, with the given generic type arguments.
Add a type name to the end of this comment.
Add a type name to the end of this comment.
Add a type name to the end of this comment.
Insert a local variable declaration at this point.
Insert a local variable declaration at this point.
Add a vararg parameter to this method.
Add a vararg parameter to this method.
Add a resource for try
-with-resources constructs.