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 VoidTypeVOID-
Fields inherited from class org.jboss.jandex.Type
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Modifier Constructor Description privateVoidType(AnnotationInstance[] annotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoidTypeasVoidType()Casts this type to aVoidTypeand returns it if the kind isType.Kind.VOIDThrows an exception otherwise.(package private) TypecopyType(AnnotationInstance[] newAnnotations)Type.Kindkind()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:TypeCasts this type to aVoidTypeand returns it if the kind isType.Kind.VOIDThrows an exception otherwise.- Overrides:
asVoidTypein classType- Returns:
- a
ClassType
-
copyType
Type copyType(AnnotationInstance[] newAnnotations)
-
-