Package org.jboss.jandex
Class VoidType
- java.lang.Object
-
- org.jboss.jandex.Type
-
- org.jboss.jandex.VoidType
-
- All Implemented Interfaces:
Descriptor
public class VoidType extends Type
Represents thevoidpseudo-type, which may appear in a method signature.- Since:
- 2.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.jandex.Type
Type.Builder<THIS extends Type.Builder<THIS>>, Type.Kind
-
-
Field Summary
Fields Modifier and Type Field Description static VoidTypeVOID-
Fields inherited from class org.jboss.jandex.Type
EMPTY_ARRAY
-
Fields inherited from interface org.jboss.jandex.Descriptor
NO_SUBSTITUTION
-
-
Constructor Summary
Constructors Modifier Constructor Description privateVoidType(AnnotationInstance[] annotations)
-
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.VOID.(package private) TypecopyType(AnnotationInstance[] newAnnotations)Type.Kindkind()Returns the kind of Type this is.-
Methods inherited from class org.jboss.jandex.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, withoutAnnotations
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.jandex.Descriptor
descriptor
-
-
-
-
Field Detail
-
VOID
public static final VoidType VOID
-
-
Constructor Detail
-
VoidType
private VoidType(AnnotationInstance[] annotations)
-
-
Method Detail
-
asVoidType
public VoidType 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
Type copyType(AnnotationInstance[] newAnnotations)
-
-