public class VoidType extends Type
Modifier and Type | Field and Description |
---|---|
(package private) static VoidType |
VOID |
EMPTY_ARRAY
Modifier | Constructor and Description |
---|---|
private |
VoidType(AnnotationInstance[] annotations) |
Modifier and Type | Method and Description |
---|---|
VoidType |
asVoidType()
Casts this type to a
VoidType and returns it if the kind is
Type.Kind.VOID
Throws an exception otherwise. |
(package private) Type |
copyType(AnnotationInstance[] newAnnotations) |
Type.Kind |
kind()
Returns the kind of Type this is.
|
addAnnotation, annotation, annotationArray, annotations, appendAnnotations, asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariable, asUnresolvedTypeVariable, asWildcardType, create, equals, hasAnnotation, hashCode, name, toString, toString
static final VoidType VOID
private VoidType(AnnotationInstance[] annotations)
public VoidType asVoidType()
Type
VoidType
and returns it if the kind is
Type.Kind.VOID
Throws an exception otherwise.asVoidType
in class Type
ClassType
Type copyType(AnnotationInstance[] newAnnotations)