Class

com.celadari.jsonlogicscala.evaluate

EvaluatorLogic

Related Doc: package evaluate

Permalink

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. All

Instance Constructors

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

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. implicit val conf: EvaluatorLogicConf

    Permalink
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def eval(jsonLogicCore: JsonLogicCore): Any

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped