public final class FunctionDefinedByUser extends AbstractFunction
| Modifier and Type | Field and Description |
|---|---|
private int |
argsNumber |
private ValueType[][] |
argTypes |
private java.lang.String |
name |
ALL_FUNCTIONS, EXECUTION_PREFIX, UID_COUNTER| Constructor and Description |
|---|
FunctionDefinedByUser(java.lang.String name,
int argsNumber,
PreprocessorContext context) |
| Modifier and Type | Method and Description |
|---|---|
Value |
execute(PreprocessorContext context,
Value[] values) |
ValueType[][] |
getAllowedArgumentTypes()
Get arrays of supported argument types
|
int |
getArity()
Get the function arity
|
java.lang.String |
getName()
Get the function name
|
java.lang.String |
getReference()
Get the function reference to be output for a help request
|
ValueType |
getResultType()
Get the result type
|
findForClass, findForName, getExpressionItemPriority, getExpressionItemType, toStringprivate final java.lang.String name
private final int argsNumber
private final ValueType[][] argTypes
public FunctionDefinedByUser(java.lang.String name,
int argsNumber,
PreprocessorContext context)
public java.lang.String getName()
AbstractFunctiongetName in class AbstractFunctionpublic int getArity()
AbstractFunctiongetArity in class AbstractFunctionpublic Value execute(PreprocessorContext context, Value[] values)
public ValueType[][] getAllowedArgumentTypes()
AbstractFunctiongetAllowedArgumentTypes in class AbstractFunctionpublic java.lang.String getReference()
AbstractFunctiongetReference in class AbstractFunctionpublic ValueType getResultType()
AbstractFunctiongetResultType in class AbstractFunction