new CustomNode(){CustomNode}
The CustomNode class represents a value that can be anything
Returns:
CustomNode instance.Methods
-
generate(context)
-
Generate the code for this node
Name Type Description context
object the generation context for this node
-
path(){array}
-
Return the current object path
Returns:
array containing the path to this node
-
setContext(context)
-
Set the custom context for the custom validator (might include pre-compiled regular expressions)
Name Type Description context
object the context for this custom validator node
-
setValidator(func)
-
Set the custom validator function
Name Type Description func
function the custom function validator