Package org.jboss.jandex
Class VoidType
java.lang.Object
org.jboss.jandex.Type
org.jboss.jandex.VoidType
- All Implemented Interfaces:
Descriptor
Represents the
void
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
FieldsFields inherited from class org.jboss.jandex.Type
EMPTY_ARRAY
Fields inherited from interface org.jboss.jandex.Descriptor
NO_SUBSTITUTION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCasts this type to aVoidType
and returns it if the kind isType.Kind.VOID
.(package private) Type
copyType
(AnnotationInstance[] newAnnotations) 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, withoutAnnotations
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 Details
-
VOID
-
-
Constructor Details
-
VoidType
-
-
Method Details
-
kind
Description copied from class:Type
Returns the kind of Type this is. -
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
-