Package org.jboss.jandex
Class VoidType
java.lang.Object
org.jboss.jandex.Type
org.jboss.jandex.VoidType
Specifies "void" in a method signature.
- Since:
- 2.0
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from class org.jboss.jandex.Type
EMPTY_ARRAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCasts this type to aVoidType
and returns it if the kind isType.Kind.VOID
Throws an exception otherwise.(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, appendAnnotations, asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariable, asUnresolvedTypeVariable, asWildcardType, create, equals, hasAnnotation, hashCode, name, toString, toString
-
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
ClassType
-
copyType
-