public enum UnknownSourceType extends Enum<UnknownSourceType>
| Enum Constant and Description |
|---|
FIELD
Define unknown value where the value is coming from a field.
|
PARAMETER
Define unknown value where the value is coming from a function parameter.
|
RETURN
Define unknown value where the value is coming from an external call.
|
| Modifier and Type | Method and Description |
|---|---|
static UnknownSourceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnknownSourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnknownSourceType PARAMETER
void callMe(String userInput) {
executeQuery("SELECT * FROM User WHERE id=" + userInput);
}
public static final UnknownSourceType RETURN
void callMe() {
executeQuery("SELECT * FROM User WHERE id=" + externalCall());
}
public static final UnknownSourceType FIELD
private String userInput;
void callMe() {
executeQuery("SELECT * FROM User WHERE id=" + userInput);
}
public static UnknownSourceType[] values()
for (UnknownSourceType c : UnknownSourceType.values()) System.out.println(c);
public static UnknownSourceType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2019. All rights reserved.