Java Elements reference
Table 53: Java element properties
Table 54: Substitution Codes for the Java Elements properties
Advanced substitution formats
You can also use advanced substitution formats with these substitution codes to create a more informative display name for the elements in the Explorer and Object Browser.
For simple arguments (arguments that do not contain lists of items), you can create a code in the format:
{SubstitutionCode,prefix,suffix}where
prefix
represents a string to appear before the element name and
suffix
represents a string to appear after it. If there is nothing to replace the substitution code with, the prefix and suffix parameters are ignored. If you want to use a comma in the prefix or suffix, enclose the string in double quote (") marks.
For example, to display information about exceptions on method nodes, you could use the expression
{n}{e, throws ,}If the method does not contain exception code, only the method name is displayed. If there is exception code, the following is displayed:
methodName throws exceptionNameYou can display the
{p}
,{a}
,{i}
, and{e}
codes in the following array format:{SubstitutionCode,prefix,suffix,delimiter}where
delimiter
represents the text that separates the parameters.
For example, for
Methods
, you could enter{n}{p, (,),", "}to display the method name and then the parameters of the method in parentheses. If there is more than one parameter, the parameters will be delimited with commas. If there are no parameters, only the method name will be displayed.
Contents | Prev | Next | Index |