Class HelpFunction
java.lang.Object
com.github.basking2.sdsai.itrex.functions.HelpFunction
- All Implemented Interfaces:
FunctionInterface<String>
,HelpfulFunction
,BiFunction<Iterator<?>,
EvaluationContext, String>
A function that fetches function help text.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(Iterator<? extends Object> args, EvaluationContext evaluationContext) functionHelp
(String name, boolean verbose) Returns help text for how this function should be used.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
HelpFunction
public HelpFunction()
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceBiFunction<Iterator<?>,
EvaluationContext, String>
-
functionHelp
Returns help text for how this function should be used.- Specified by:
functionHelp
in interfaceHelpfulFunction
- Parameters:
name
- The name the function is called. Functions may have aliases.verbose
- Should this help be verbose or simplistic.- Returns:
- A string that describes how to use a function. This may be a Markdown formatted string.
-