Literals
Certain literals are used for the rule language grammar.
The TIBCO BusinessEvents rule language supports these literals:
int
One or more digits without a decimal. May be positive or negative.
Examples:
4 45 -321 787878
long
An integer literal suffixed with the letter L. The suffixed L can be either upper or lower case, but keep in mind that the lower case L (l) can be difficult to distinguish from the number one (1).
Examples:
0l 0777L 0x100000000L 2147483648L 0xC0B0L
double
A number that can represent fractional values. D suffix is optional unless there is no decimal point or exponent.
Examples:
1D 1e1 2. .3 0.0D 3.14 1e-9d 1e137
String
Zero or more characters enclosed in double quotes (""). The string must be on one line. Use
\n
for newlines. Use the plus sign (+) to concatenate string segments.
Examples:
- Empty string:
""
(quotes with no space). - Space character:
" "
(quotes with one or more spaces). - Strings with values:
"P0QSTN3" "The quick brown fox had quite a feast!"
- Strings spanning multiple lines:
"The quick brown fox " +
"had quite a feast!"
boolean
One of these two values:
true
false
Null
This value:
null