Class 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
    • Field Summary

      • Fields inherited from class ca.uqac.lif.cep.functions.Function

        s_maxInputArity
    • Constructor Summary

      Constructors 
      Constructor Description
      JPathFunction​(java.lang.String path)
      Creates a new JPath function
      JPathFunction​(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
      • Methods inherited from class ca.uqac.lif.cep.functions.Function

        duplicate, evaluate, evaluate, evaluateLazy, evaluatePartial, print, printState, read, readState
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Method Detail

      • getValue

        public ca.uqac.lif.json.JsonElement getValue​(ca.uqac.lif.json.JsonElement x)
        Specified by:
        getValue in class ca.uqac.lif.cep.functions.UnaryFunction<ca.uqac.lif.json.JsonElement,​ca.uqac.lif.json.JsonElement>