Class ParseJson

  • 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 ParseJson
    extends ca.uqac.lif.cep.functions.UnaryFunction<java.lang.String,​ca.uqac.lif.json.JsonElement>
    Function that converts a string into a JSON element
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static ParseJson instance
      Instance of the function
      protected static ca.uqac.lif.json.JsonParser s_parser
      The parser used to parse the elements.
      • Fields inherited from class ca.uqac.lif.cep.functions.Function

        s_maxInputArity
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ca.uqac.lif.json.JsonElement getValue​(java.lang.String 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
    • Field Detail

      • instance

        public static ParseJson instance
        Instance of the function
      • s_parser

        protected static final ca.uqac.lif.json.JsonParser s_parser
        The parser used to parse the elements. All instances of the function share the same parser.
    • Method Detail

      • getValue

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