Package ca.uqac.lif.cep.json
Class JPathFunction
- java.lang.Object
-
- ca.uqac.lif.cep.functions.Function
-
- ca.uqac.lif.cep.functions.UnaryFunction<ca.uqac.lif.json.JsonElement,ca.uqac.lif.json.JsonElement>
-
- ca.uqac.lif.cep.json.JPathFunction
-
- All Implemented Interfaces:
ca.uqac.lif.azrael.Printable
,ca.uqac.lif.azrael.Readable
,ca.uqac.lif.cep.Duplicable
,ca.uqac.lif.cep.functions.DuplicableFunction
public class JPathFunction extends ca.uqac.lif.cep.functions.UnaryFunction<ca.uqac.lif.json.JsonElement,ca.uqac.lif.json.JsonElement>
Function that evaluates a JPath expression on a JsonElement
-
-
Constructor Summary
Constructors Constructor Description JPathFunction(java.lang.String path)
Creates a new JPath functionJPathFunction(java.util.List<ca.uqac.lif.json.JsonPath.PathElement> path)
Creates a new XPath function
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ca.uqac.lif.json.JsonElement
getValue(ca.uqac.lif.json.JsonElement x)
-
Methods inherited from class ca.uqac.lif.cep.functions.UnaryFunction
duplicate, evaluate, getInputArity, getInputTypesFor, getOutputArity, getOutputTypeFor, reset
-
-
-
-
Constructor Detail
-
JPathFunction
public JPathFunction(java.lang.String path)
Creates a new JPath function- Parameters:
path
- The JPath expression to evaluate
-
JPathFunction
public JPathFunction(java.util.List<ca.uqac.lif.json.JsonPath.PathElement> path)
Creates a new XPath function- Parameters:
path
- The path elements to evaluate
-
-