Class FormatUtilFunction
java.lang.Object
io.higson.runtime.builtin.implementation.UtilFunction
io.higson.runtime.builtin.implementation.FormatUtilFunction
- All Implemented Interfaces:
ContextualUtilFunction
The FormatUtilFunction class provides formatting functionality for different types of objects.
It extends the UtilFunction class and implements the ContextualUtilFunction interface.
-
Field Summary
FieldsFields inherited from class io.higson.runtime.builtin.implementation.UtilFunction
converter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(HigsonContext ctx, Object[] args) Calls the format utility function with the given arguments.Methods inherited from class io.higson.runtime.builtin.implementation.UtilFunction
createHigsonRuntimeException, createHigsonRuntimeException, isValid, toTemporalAmountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.higson.runtime.builtin.implementation.ContextualUtilFunction
getContextPath
-
Field Details
-
CODE
- See Also:
-
INSTANCE
-
-
Constructor Details
-
FormatUtilFunction
public FormatUtilFunction()
-
-
Method Details
-
call
Calls the format utility function with the given arguments.- Specified by:
callin classUtilFunction- Parameters:
ctx- The HigsonContext object.args- An array of arguments passed to the format utility function.- Returns:
- The formatted output based on the type of the object retrieved from the context.
- Throws:
HigsonRuntimeException- If the format utility function is missing the format argument or if the type is unsupported.
-