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
- Author:
- Jason T. Greene
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from class Type
EMPTY_ARRAYFields inherited from interface Descriptor
NO_SUBSTITUTION -
Method Summary
Modifier and TypeMethodDescriptionCasts this type to aVoidTypeand returns it if the kind isType.Kind.VOID.kind()Returns the kind of Type this is.Methods inherited from class Type
annotation, annotations, annotationsWithRepeatable, asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariable, asTypeVariableReference, asUnresolvedTypeVariable, asWildcardType, create, create, createWithAnnotations, descriptor, equals, hasAnnotation, hashCode, name, parse, toStringMethods inherited from interface Descriptor
descriptor
-
Field Details
-
VOID
-
-
Method Details
-
kind
-
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
-