Class NumberValue

java.lang.Object
ca.uqac.lif.cep.functions.Function
ca.uqac.lif.cep.functions.UnaryFunction<ca.uqac.lif.json.JsonElement,Number>
ca.uqac.lif.cep.json.NumberValue
All Implemented Interfaces:
ca.uqac.lif.cep.Duplicable, ca.uqac.lif.cep.functions.DuplicableFunction

public class NumberValue extends ca.uqac.lif.cep.functions.UnaryFunction<ca.uqac.lif.json.JsonElement,Number>
Extracts a number value from a JSON element.
Author:
Sylvain Hallé
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final NumberValue
     

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

    s_maxInputArity
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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, printState, readState

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • instance

      public static final transient NumberValue instance
  • Constructor Details

    • NumberValue

      protected NumberValue()
  • Method Details

    • getValue

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