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 Type
Type.Builder<THIS>, Type.Kind -
Field Summary
FieldsFields inherited from class Type
EMPTY_ARRAYFields inherited from interface 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 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 interface Descriptor
descriptor
-
Field Details
-
VOID
-
-
Constructor Details
-
VoidType
-
-
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
-
copyType
-