Package io.github.argcc.string_function
Class StringFunctionHandler
java.lang.Object
io.github.argcc.string_function.StringFunctionHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetting list of objects whose methods are used as functionsProcesses a string, replacing function calls with the result of calling the appropriate methods.setFunctions(Object functions)Sets an object whose methods are used as functionssetFunctions(Object... functions)Sets an array of objects whose methods are used as functionssetFunctions(List<Object> functions)Sets list of objects whose methods are used as functionssetTemplate(String template)Specifies the semantics of a function call.
-
Constructor Details
-
StringFunctionHandler
public StringFunctionHandler()
-
-
Method Details
-
getFunctions
Getting list of objects whose methods are used as functions- Returns:
-
setFunctions
Sets list of objects whose methods are used as functions- Parameters:
functions-- Returns:
-
setFunctions
Sets an array of objects whose methods are used as functions- Parameters:
functions-- Returns:
-
setFunctions
Sets an object whose methods are used as functions- Parameters:
functions-- Returns:
-
setTemplate
Specifies the semantics of a function call. Examples: "name(args)", "$name<[args]>", "#name{args}"- Parameters:
template-- Returns:
-
handle
Processes a string, replacing function calls with the result of calling the appropriate methods.- Parameters:
text-- Returns:
-