Class VoidType

java.lang.Object
org.jboss.jandex.Type
org.jboss.jandex.VoidType
All Implemented Interfaces:
Descriptor

public class VoidType extends Type
Represents the void pseudo-type, which may appear in a method signature.
Author:
Jason T. Greene
Since:
2.0
  • Field Details

    • VOID

      public static final VoidType VOID
  • Method Details

    • kind

      public Type.Kind kind()
      Description copied from class: Type
      Returns the kind of Type this is.
      Specified by:
      kind in class Type
      Returns:
      the kind
    • asVoidType

      public VoidType asVoidType()
      Description copied from class: Type
      Casts this type to a VoidType and returns it if the kind is Type.Kind.VOID. Throws an exception otherwise.
      Overrides:
      asVoidType in class Type
      Returns:
      a VoidType