Allows to declare a function with another name. For example, this can be applied if you want to maintain function names that has been renamed
in a performed porting and and in this way avoid having to modify the programs.
1 function.alias
<function.alias
name='name'
as='as'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | Name of the existing function. | |||
Aas | string | Alias for the existing function. |
Example
Declare the file.getBytes alias for the function file.bytes.read.
Copy
<xsql-script name='function_loadExternalFunction'> <body> <function.alias name='file.bytes.read' as='file.getBytes' /> <file.writer.open id='out1'> <file name='sample.txt' type='temp' /> </file.writer.open> <file.writer.println id='out1'> This is a test text. </file.writer.println> <file.writer.close id='out1' /> <println> <file.getBytes> <file name='sample.txt' /> </file.getBytes> </println> </body> </xsql-script>