Used by these objects:
CallsiteSet
A CallsiteCondition value provides a condition that must be satisfied in order
for a CallsiteSet value to match a given call site.
Fields
This object uses the following fields.
The only_if_arg_index field must always be present:
only_if_arg_index-
An integer value, starting from
1, that specifies the position of the argument to which this condition applies.
The following optional fields are mutually exclusive. Only one of these, if any, must be present:
equals_string-
(Optional) A JSON string value. If this field is present, the argument indicated by
only_if_arg_indexmust be a string literal that has exactly this value and capitalization. iequals_string-
(Optional) A JSON string value. If this field is present, the argument indicated by
only_if_arg_indexmust be a string literal that equals this value. The comparison for theiequals_stringis not case-sensitive. regex_string-
(Optional) A JSON string value that specifies a Perl-style regular expression. If this field is present, the argument indicated by
only_if_arg_indexmust match this regular expression. The comparison for theregex_stringis case-sensitive. iregex_string-
(Optional) A JSON string value that specifies a Perl-style regular expression. If this field is present, the argument indicated by
only_if_arg_indexmust match this regular expression. The comparison for theiregex_stringis not case-sensitive. equals_int-
(Optional) Specifies an integer value. If this field is present, the argument indicated by
only_if_arg_indexmust be an integer literal that equals this value.
Finally, the following field, is_last_arg, can be specified alone
or in concert with one of the other optional fields:
is_last_arg-
(Optional) A JSON Boolean value.
If this field is present, the argument indicated by
only_if_arg_indexmust be the last argument in the call site.If
is_last_argis the only optional field specified, thenonly_if_arg_indexis allowed to equal0, in order to express that the call site has no arguments.
See also
The example of a call_on for a CallsiteSet example.