Enum UnknownSourceType

    • Enum Constant Detail

      • PARAMETER

        public static final UnknownSourceType PARAMETER
        Define unknown value where the value is coming from a function parameter. It may also be the combination of a parameter with another source. void callMe(String userInput) { executeQuery("SELECT * FROM User WHERE id=" + userInput); }
      • RETURN

        public static final UnknownSourceType RETURN
        Define unknown value where the value is coming from an external call. void callMe() { executeQuery("SELECT * FROM User WHERE id=" + externalCall()); }
      • FIELD

        public static final UnknownSourceType FIELD
        Define unknown value where the value is coming from a field. private String userInput; void callMe() { executeQuery("SELECT * FROM User WHERE id=" + userInput); }
    • Method Detail

      • values

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

        public static UnknownSourceType 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