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_ARRAYFields inherited from interface org.jboss.jandex.Descriptor
NO_SUBSTITUTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCasts this type to aVoidTypeand returns it if the kind isType.Kind.VOID.(package private) TypecopyType(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, withoutAnnotationsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jboss.jandex.Descriptor
descriptor
-
Field Details
-
VOID
-
-
Constructor Details
-
VoidType
-
-
Method Details
-
kind
Description copied from class:TypeReturns the kind of Type this is. -
asVoidType
Description copied from class:TypeCasts this type to aVoidTypeand returns it if the kind isType.Kind.VOID. Throws an exception otherwise.- Overrides:
asVoidTypein classType- Returns:
- a
VoidType
-
copyType
-