Packages

class EvaluatorLogic extends AnyRef

Responsible for evaluating scala data structure com.celadari.jsonlogicscala.tree.JsonLogicCore. May be extended to fit custom use cases. Providing the right configuration via com.celadari.jsonlogicscala.evaluate.EvaluatorLogicConf is enough to cover most cases. You may redefine methods to handle extreme uncommon cases.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EvaluatorLogic
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new EvaluatorLogic()(implicit conf: EvaluatorLogicConf)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. implicit val conf: EvaluatorLogicConf
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def eval(jsonLogicCore: JsonLogicCore): Any

    Returns evaluated result of scala data structure com.celadari.jsonlogicscala.tree.JsonLogicCore.

    Returns evaluated result of scala data structure com.celadari.jsonlogicscala.tree.JsonLogicCore. A com.celadari.jsonlogicscala.tree.JsonLogicCore is a scala data structure that represents a json-logic-typed. A json-logic-typed object represents an expression. This method evaluates the underlying expression represented by a scala data structure com.celadari.jsonlogicscala.tree.JsonLogicCore. Before evaluation, the underlying syntax tree is traversed - using com.celadari.jsonlogicscala.evaluate.CompositionOperator.ComposeJsonLogicCore - and any com.celadari.jsonlogicscala.tree.ValueLogic object representing a variable (of a com.celadari.jsonlogicscala.evaluate.CompositionOperator) is replaced by an com.celadari.jsonlogicscala.tree.VariableLogic object recursively.

    returns

    evaluated result.

  10. def evaluate(condition: JsonLogicCore, logicOperatorToValue: Map[ComposeLogic, Map[String, Any]]): Any

    Returns evaluated result of corresponding condition (node in syntax tree).

    Returns evaluated result of corresponding condition (node in syntax tree). This method carries a map of map of (composition_operator -> map(variable_name -> variable_value)) to fetch the value of variable (depends on the composition_operator and the values this composition_operator is applied to).

    returns

    evaluated result.

  11. def evaluateComposeLogic(condition: ComposeLogic, logicToValue: Map[ComposeLogic, Map[String, Any]]): Any

    Returns evaluated result of corresponding condition (internal node in syntax tree).

    Returns evaluated result of corresponding condition (internal node in syntax tree). This method carries a map of map of (composition_operator -> map(variable_name -> variable_value)) to fetch the value of variable (depends on the composition_operator and the values this composition_operator is applied to).

    returns

    evaluated result.

    Attributes
    protected[this]
  12. def evaluateValueLogic(condition: ValueLogic[_]): Any

    Returns transformed value of leaf node in syntax tree before evaluation.

    Returns transformed value of leaf node in syntax tree before evaluation.

    returns

    transformed value.

    Attributes
    protected[this]
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped