public class FunctionMap extends Object
| Constructor and Description |
|---|
FunctionMap() |
| Modifier and Type | Method and Description |
|---|---|
FunctionDefinition |
get(String name)
Return the function definition associated with the given name or null if
it doesn't exist.
|
void |
put(String name,
Operation function,
Template template,
SourceRange sourceRange)
Define the given DML block as a function with the given name in this
context.
|
public FunctionDefinition get(String name)
name - name of the function to retrievepublic void put(String name, Operation function, Template template, SourceRange sourceRange) throws EvaluationException
name - name for the functionfunction - code for the function as a DML blocktemplate - template in which this function is defined (used for error
handling)sourceRange - location in the template where this function is defined (used
for error handling)EvaluationException - if a function with the given name already existsCopyright © 2014 Quattor. All Rights Reserved.