property
The property
type represents an inspector property 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 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 |
Properties
This introspector returns True
if a property's dependency is known. If it isn't, then properties containing the expression can't be fingerprinted, an optimization that exempts expressions from re-evaluation if their dependencies haven't changed.
- Q: (it as string, dependency known of it) of properties of type "file"
- A: json of <file>: json value, True
- A: sqlite database of <file>: sqlite database, False
- A: content of <file>: file content, True
- A: ...
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 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 whether the property can have more than one value for a single input.
- Q: properties whose (multivalued of it) of type "bit set"
- 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 |
Returns the plural name of the property.
- Q: (singular name of it, plural name of it) of properties of type "boolean"
- A: conjunction, conjunctions
- A: disjunction, disjunctions
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
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 singular name of the property.
- Q: (singular name of it, plural name of it) of properties of type "boolean"
- A: conjunction, conjunctions
- A: disjunction, disjunctions
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
If the property can return multiple values, this is the plural name of the property. Otherwise it is the singular name.
- Q: usual names of properties of type "bit set"
- A: padded string
- A: least significant one bit
- A: most significant one bit
- A: right shift
- A: left shift
- A: bit
- A: one bits
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |