Class VoidType


  • public class VoidType
    extends Type
    Specifies "void" in a method signature.
    Since:
    2.0
    Author:
    Jason T. Greene
    • Method Detail

      • 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 ClassType