Class PathFunctionFactory
- java.lang.Object
-
- com.jayway.jsonpath.internal.function.PathFunctionFactory
-
public class PathFunctionFactory extends java.lang.ObjectImplements a factory that given a name of the function will return the Function implementation, or null if the value is not obtained. Leverages the function's name in order to determine which function to execute which is maintained internally here via a static map
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<java.lang.String,java.lang.Class>FUNCTIONS
-
Constructor Summary
Constructors Constructor Description PathFunctionFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PathFunctionnewFunction(java.lang.String name)Returns the function by name or throws InvalidPathException if function not found.
-
-
-
Method Detail
-
newFunction
public static PathFunction newFunction(java.lang.String name) throws InvalidPathException
Returns the function by name or throws InvalidPathException if function not found.- Parameters:
name- The name of the function- Returns:
- The implementation of a function
- Throws:
InvalidPathException- See Also:
FUNCTIONS,PathFunction
-
-