Package org.jboss.jandex
Class VoidType
- java.lang.Object
-
- org.jboss.jandex.Type
-
- org.jboss.jandex.VoidType
-
public class VoidType extends Type
Specifies "void" in a method signature.- Since:
- 2.0
- Author:
- Jason T. Greene
-
-
Field Summary
-
Fields inherited from class org.jboss.jandex.Type
EMPTY_ARRAY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoidType
asVoidType()
Casts this type to aVoidType
and returns it if the kind isType.Kind.VOID
Throws an exception otherwise.Type.Kind
kind()
Returns the kind of Type this is.-
Methods inherited from class org.jboss.jandex.Type
annotation, annotations, asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariable, asUnresolvedTypeVariable, asWildcardType, create, equals, hasAnnotation, hashCode, name, toString
-
-
-
-
Method Detail
-
asVoidType
public VoidType 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
-
-