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, annotationArray, annotations, appendAnnotations, asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariable, asUnresolvedTypeVariable, asWildcardType, create, equals, hashCode, name, toString, toStringstatic final VoidType VOID
private VoidType(AnnotationInstance[] annotations)
public VoidType asVoidType()
TypeVoidType and returns it if the kind is
Type.Kind.VOID
Throws an exception otherwise.asVoidType in class TypeClassTypeType copyType(AnnotationInstance[] newAnnotations)