Enum TypeCheckOp

    • Enum Constant Detail

      • CAST

        public static final TypeCheckOp CAST
        A checked cast that passes the value through under the target type and throws ClassCastException when it does not fit.
      • INSTANCEOF

        public static final TypeCheckOp INSTANCEOF
        A non-throwing type test that produces an int, 1 when the value is an instance of the target type and 0 otherwise; null tests as 0.
    • Method Detail

      • values

        public static TypeCheckOp[] 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 (TypeCheckOp c : TypeCheckOp.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TypeCheckOp valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null