Whitespace is used to separate tokens (identifiers, keywords, literals, separators, and operators) just as it is used in any written language to separate words. Whitespace is also used to format code.// text TIBCO BusinessEvents ignores the text from “//” to the end of the line.
An identifier (or name, to use the user interface label) is an unlimited-length sequence of letters and digits, the first of which must be a letter. Letters include uppercase and lowercase ASCII Latin letters A-Z, a-z, and the underscore (_).
Letters and digits may be drawn from the entire Unicode character set, which supports most writing scripts in use in the world today, including the large sets for Chinese, Japanese, and Korean. This allows programmers to use identifiers in their programs that are written in their native languages.Two identifiers are the same only if they have the same Unicode character for each letter or digit. Note that some letters look the same even though they are different Unicode characters. For example, a representation of the letter A using \u0041 is not the same as a representation of the letter A using \u0391.
<Identifier> := [ <ID_START> { <ID_PART> }* ]<ID_START> := except '$', any character for which java.lang.Character.isJavaIdentifierStart() returns true<ID_PART> := except '$', any character for which java.lang.Character.isJavaIdentifierPart() returns true
•
• You can also use primitive arrays, which are fixed length. Here are examples of array declaration, initialization, and array creation expressions:
•
• 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!"
•
• Null — This value: null
Table 29 Escape Sequences The language defines the following operators. Operators in this list that are also used in the Java language work the same as the Java operators:
-= += *= /= %= += works on strings as well as numbers. For example, you have a variable String s = "abc"; and then you use
s+= "def"; and so the value of s becomes "abcdef" Tests whether an object is an instance of specified type.
Restricted to use with concepts and events.
Copyright © TIBCO Software Inc. All Rights Reserved.