public interface PreprocessorExtension
Modifier and Type | Method and Description |
---|---|
int |
getUserFunctionArity(String functionName)
When a preprocessor meets a user defined function (the function starts with
$) then it will ask for its arity
|
boolean |
processAction(PreprocessorContext context,
Value[] parameters)
To process an action (it will be called if the preprocessor is met
//#action directive)
|
Value |
processUserFunction(String functionName,
Value[] arguments)
Call to process a user function (the function starts with $)
|
boolean processAction(PreprocessorContext context, @MustNotContainNull Value[] parameters)
context
- the current preprocessor context, must not be nullparameters
- the parameters of the action directive, must not be nullValue processUserFunction(String functionName, @MustNotContainNull Value[] arguments)
functionName
- the name of the function (without $ and in low case),
must not be nullarguments
- the function arguments as an array, must not be nullint getUserFunctionArity(String functionName)
functionName
- the function name without $ and in low case, must not
be nullCopyright © 2011–2021 Igor Maznitsa. All rights reserved.