Enum TypePool.Empty

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TypePool.Empty>, TypePool
    Enclosing interface:
    TypePool

    public static enum TypePool.Empty
    extends java.lang.Enum<TypePool.Empty>
    implements TypePool
    An empty type pool that cannot describe any type.
    • Enum Constant Detail

      • INSTANCE

        public static final TypePool.Empty INSTANCE
        The singleton instance.
    • Constructor Detail

      • Empty

        private Empty()
    • Method Detail

      • values

        public static TypePool.Empty[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TypePool.Empty c : TypePool.Empty.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TypePool.Empty valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • describe

        public TypePool.Resolution describe​(java.lang.String name)
        Locates and describes the given type by its name.
        Specified by:
        describe in interface TypePool
        Parameters:
        name - The name of the type to describe. The name is to be written as when calling Object.toString() on a loaded Class.
        Returns:
        A resolution of the type to describe. If the type to be described was found, the returned TypePool.Resolution represents this type. Otherwise, an illegal resolution is returned.
      • clear

        public void clear()
        Clears this type pool's cache.
        Specified by:
        clear in interface TypePool