Package org.jboss.jandex
Class VoidType
java.lang.Object
org.jboss.jandex.Type
org.jboss.jandex.VoidType
Specifies "void" in a method signature.
- Author:
- Jason T. Greene
- Since:
- 2.0
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.jboss.jandex.Type
EMPTY_ARRAY -
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 org.jboss.jandex.Type
annotation, annotations, annotationsWithRepeatable, asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariable, asTypeVariableReference, asUnresolvedTypeVariable, asWildcardType, create, createWithAnnotations, equals, hasAnnotation, hashCode, internEquals, internHashCode, name, toString
-
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
-