type
The type
object represents a type 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
The type (if any) required after the keyword "of" in an expression using the property.
- Q: properties whose (direct object type of it = type "boolean")
- A: conjunctions of <boolean>: boolean
- A: disjunctions of <boolean>: boolean
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
The type (if any) required before or without the keyword "of" in an expression using the property.
- Q: properties whose (index type of it = type "regular expression")
- A: matches <regular expression> of <string>: regular expression match
- A: first matches <regular expression> of <string>: regular expression match
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
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 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 result type of the property. This is the type of the object that the inspector property returns.
- Q: (it as string, result type of it) of properties of type "substring"
- A: preceding text of <substring>: substring, substring
- A: following text of <substring>: substring, substring
- A: start of <substring>: string position, string position
- A: end of <substring>: string position, string position
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
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 |
Properties
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 |
Returns the casts that can be created from the specified type.
- Q: casts from of type "boolean"
- A: <boolean> as string: string
- A: <boolean> as boolean: 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 the objects that can be cast into the specified type.
- Q: casts returning (type "boolean")
- A: <string> as boolean: boolean
- A: <boolean> as boolean: boolean
- A: <json value> as boolean: 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 type.
- Q: names of types whose (it as string starts with "b")
- A: bes product
- A: binary operator
- A: bios
- A: bit set
- 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 parent type of the type if one exists.
- Q: names of types whose (exists parent of it)
- A: application
- A: client
- A: date with multiplicity
- A: day of month with multiplicity
- A: day of week with multiplicity
- A: day of year with multiplicity
- A: device file
- A: ...
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 inspector property of the specified string and type.
- Q: property "length" of type "string"
- A: length of <string>: integer
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 inspector properties of the specified type.
- Q: properties of type "bit set"
- A: padded string of <bit set>: string
- A: least significant one bit of <bit set>: integer
- A: most significant one bit of <bit set>: integer
- A: right shift <integer> of <bit set>: bit set
- A: left shift <integer> of <bit set>: bit set
- A: bit <integer> of <bit set>: boolean
- A: one bits of <bit set>: integer
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 the inspector properties that return the specified type.
- Q: properties returning (type "bit set")
- A: bit set <string>: bit set
- A: bit <integer>: bit set
- A: right shift <integer> of <bit set>: bit set
- A: left shift <integer> of <bit set>: bit set
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 inspectors of the form <type> of <type>.
- Q: properties returning (type "integer") of type "string"
- A: length of <string>: integer
- A: numeric value of <string>: integer
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 |
Retruns the number of bytes used in the internal representation of an object of the given type.
- Q: size of type "integer"
- A: 8
- Q: size of type "boolean"
- A: 1
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 the unary operator inspectors that return the specified type.
- Q: unary operators returning (type "integer")
- A: - <integer>: integer
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 |