public final class FunctionDefinedByUser extends AbstractFunction
ALL_FUNCTIONS, EXECUTION_PREFIX, FUNCTION_NAME_MAP, UID_COUNTER
Constructor and Description |
---|
FunctionDefinedByUser(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
|
String |
getName()
Get the function name
|
String |
getReference()
Get the function reference to be output for a help request
|
ValueType |
getResultType()
Get the result type
|
findForClass, findForName, getExpressionItemPriority, getExpressionItemType, toString
public FunctionDefinedByUser(String name, int argsNumber, PreprocessorContext context)
public String getName()
AbstractFunction
getName
in class AbstractFunction
public int getArity()
AbstractFunction
getArity
in class AbstractFunction
public Value execute(PreprocessorContext context, @MustNotContainNull Value[] values)
@MustNotContainNull public ValueType[][] getAllowedArgumentTypes()
AbstractFunction
getAllowedArgumentTypes
in class AbstractFunction
public String getReference()
AbstractFunction
getReference
in class AbstractFunction
public ValueType getResultType()
AbstractFunction
getResultType
in class AbstractFunction
Copyright © 2011–2021 Igor Maznitsa. All rights reserved.