binary operator
The binary operator
type represents a binary operator in the Relevance Language. This is a form of reflection that allows you to see what inspectors are available and how to use them.
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Creation
Returns all available binary operators.
- Q: binary operators
- A: <rpm package version record> = <rpm package version record>: boolean
- A: <rpm package version record> < <rpm package version record>: boolean
- A: <rpm package version record> <= <rpm package version record>: boolean
- A: <rpm package version record> = <string>: boolean
- A: ...
This inspector can be used with whose
to find binary operators that work on a specfic type.
- Q: binary operators whose (it as string contains "ipv6")
- A: <ipv6 address> = <ipv6 address>: boolean
- A: <ipv6 address> < <ipv6 address>: boolean
- A: <ipv6 address> <= <ipv6 address>: boolean
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Returns the various possible binary inspectors that use the specified operators.
- Q: binary operators "starts with"
- A: <string> starts with <regular expression>: boolean
- A: <string> starts with <string>: boolean
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Returns a list of binary operators that return the specified type.
- Q: binary operators returning (type "day of week")
- A: <day of week> + <time interval>: day of week
- A: <time interval> + <day of week>: day of week
- A: <day of week> - <time interval>: day of week
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Properties
Returns the type on the left side of the binary operator.
- Q: binary operators whose (left operand type of it is type "time zone")
- A: <time zone> & <time of day>: time of day with time zone
- A: <time zone> & <time of day with time zone>: time of day with time zone
- A: <time zone> + <time interval>: time zone
- A: <time zone> - <time interval>: time zone
- A: <time zone> - <time zone>: time interval
- A: <time zone> = <time zone>: boolean
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Returns the name of the operation performend by the binary operator.
- Q: names of binary operators whose (left operand type of it is type "time zone")
- A: concatenate
- A: concatenate
- A: plus
- A: minus
- A: minus
- A: equal
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Returns the type that the binary operator produces.
- Q: result types of binary operators whose (left operand type of it is type "time zone")
- A: time of day with time zone
- A: time of day with time zone
- A: time zone
- A: time zone
- A: time interval
- A: boolean
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Returns the type on the right side of the binary operator.
- Q: binary operators whose (right operand type of it is type "time zone")
- A: <time of day> & <time zone>: time of day with time zone
- A: <time of day with time zone> & <time zone>: time of day with time zone
- A: <time interval> + <time zone>: time zone
- A: <time zone> - <time zone>: time interval
- A: <time zone> = <time zone>: boolean
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Returns the phrase or punctuation mark used to invoke the operator.
- Q: unique values of symbols of binary operators
- A: %
- A: &
- A: *
- A: +
- A: -
- A: /
- A: <
- A: <=
- A: =
- A: contains
- A: ends with
- A: starts with
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Casts
Returns a short description of the operator.
- Q: binary operators whose (it as string contains "regular")
- A: <string> contains <regular expression>: boolean
- A: <string> = <regular expression>: boolean
- A: <regular expression> = <string>: boolean
- A: <string> starts with <regular expression>: boolean
- A: <string> ends with <regular expression>: boolean
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |