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 VoidTypeasVoidType()Casts this type to aVoidTypeand returns it if the kind isType.Kind.VOIDThrows an exception otherwise.Type.Kindkind()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:TypeCasts this type to aVoidTypeand returns it if the kind isType.Kind.VOIDThrows an exception otherwise.- Overrides:
asVoidTypein classType- Returns:
- a
ClassType
-
-