Package org.jboss.jandex
Class VoidType
- java.lang.Object
-
- org.jboss.jandex.Type
-
- org.jboss.jandex.VoidType
-
- All Implemented Interfaces:
Descriptor
public class VoidType extends Type
Represents thevoid
pseudo-type, which may appear in a method signature.- Since:
- 2.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.jandex.Type
Type.Builder<THIS extends Type.Builder<THIS>>, Type.Kind
-
-
Field Summary
Fields Modifier and Type Field Description static VoidType
VOID
-
Fields inherited from class org.jboss.jandex.Type
EMPTY_ARRAY
-
Fields inherited from interface org.jboss.jandex.Descriptor
NO_SUBSTITUTION
-
-
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
.(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, annotationsWithRepeatable, appendAnnotations, asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariable, asTypeVariableReference, asUnresolvedTypeVariable, asWildcardType, create, create, createWithAnnotations, descriptor, equals, hasAnnotation, hashCode, internEquals, internHashCode, name, parse, toString, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.jandex.Descriptor
descriptor
-
-
-
-
Field Detail
-
VOID
public 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
VoidType
-
copyType
Type copyType(AnnotationInstance[] newAnnotations)
-
-