Package org.jboss.jandex
Class VoidType
- java.lang.Object
-
- org.jboss.jandex.Type
-
- org.jboss.jandex.VoidType
-
public class VoidType extends Type
Specifies "void" in a method signature.- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static VoidType
VOID
-
Fields inherited from class org.jboss.jandex.Type
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Modifier Constructor Description private
VoidType(AnnotationInstance[] annotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoidType
asVoidType()
Casts this type to aVoidType
and returns it if the kind isType.Kind.VOID
Throws an exception otherwise.(package private) Type
copyType(AnnotationInstance[] newAnnotations)
Type.Kind
kind()
Returns the kind of Type this is.-
Methods inherited from class org.jboss.jandex.Type
addAnnotation, annotation, annotationArray, annotations, appendAnnotations, asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariable, asUnresolvedTypeVariable, asWildcardType, create, equals, hasAnnotation, hashCode, name, toString, toString
-
-
-
-
Field Detail
-
VOID
static final VoidType VOID
-
-
Constructor Detail
-
VoidType
private VoidType(AnnotationInstance[] annotations)
-
-
Method Detail
-
asVoidType
public VoidType asVoidType()
Description copied from class:Type
Casts this type to aVoidType
and returns it if the kind isType.Kind.VOID
Throws an exception otherwise.- Overrides:
asVoidType
in classType
- Returns:
- a
ClassType
-
copyType
Type copyType(AnnotationInstance[] newAnnotations)
-
-