Home FunctionRepository Class
FunctionRepository Class
Cancel

FunctionRepository Class

Namespace: Json.Path

Inheritance: FunctionRepository 🡒 object

Stores expression function definitions.

Methods

Register(ValueFunctionDefinition function)

Registers a new function implementation, allowing it to be parsed.

Declaration

1
public static void Register(ValueFunctionDefinition function)
ParameterTypeDescription
functionValueFunctionDefinitionThe function.

Register(LogicalFunctionDefinition function)

Registers a new function implementation, allowing it to be parsed.

Declaration

1
public static void Register(LogicalFunctionDefinition function)
ParameterTypeDescription
functionLogicalFunctionDefinitionThe function.

Register(NodelistFunctionDefinition function)

Registers a new function implementation, allowing it to be parsed.

Declaration

1
public static void Register(NodelistFunctionDefinition function)
ParameterTypeDescription
functionNodelistFunctionDefinitionThe function.

Register(ValueFunctionDefinition function, Type functionType)

Registers a new function implementation, allowing it to be parsed.

Declaration

1
public static void Register(ValueFunctionDefinition function, Type functionType)
ParameterTypeDescription
functionValueFunctionDefinitionThe function.
functionTypeTypeThe type of the function.

Register(LogicalFunctionDefinition function, Type functionType)

Registers a new function implementation, allowing it to be parsed.

Declaration

1
public static void Register(LogicalFunctionDefinition function, Type functionType)
ParameterTypeDescription
functionLogicalFunctionDefinitionThe function.
functionTypeTypeThe type of the function.

Register(NodelistFunctionDefinition function, Type functionType)

Registers a new function implementation, allowing it to be parsed.

Declaration

1
public static void Register(NodelistFunctionDefinition function, Type functionType)
ParameterTypeDescription
functionNodelistFunctionDefinitionThe function.
functionTypeTypeThe function type.

RegisterLogicalFunction()

Registers a new function implementation, allowing it to be parsed.

Declaration

1
public static void RegisterLogicalFunction()

RegisterNodelistFunction()

Registers a new function implementation, allowing it to be parsed.

Declaration

1
public static void RegisterNodelistFunction()

RegisterValueFunction()

Registers a new function implementation, allowing it to be parsed.

Declaration

1
public static void RegisterValueFunction()

TryGet(string name, out IPathFunctionDefinition function)

Gets a function implementation by name.

Declaration

1
public static bool TryGet(string name, out IPathFunctionDefinition function)
ParameterTypeDescription
namestringA function name.
functionout IPathFunctionDefinitionThe function, if found; otherwise null.

Returns

True if found; otherwise false.

Unregister()

Unregisters a function implementation.

Declaration

1
public static void Unregister()

Unregister(string name)

Unregisters a function implementation.

Declaration

1
public static void Unregister(string name)
Contents