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.
- Alphabetic
- By Inheritance
- EvaluatorLogic
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
-  new EvaluatorLogic()(implicit conf: EvaluatorLogicConf)
Value Members
-   final  def !=(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def ##: Int- Definition Classes
- AnyRef → Any
 
-   final  def ==(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def asInstanceOf[T0]: T0- Definition Classes
- Any
 
-    def clone(): AnyRef- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
 
-  implicit val conf: EvaluatorLogicConf
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-    def equals(arg0: AnyRef): Boolean- Definition Classes
- AnyRef → Any
 
-    def eval(jsonLogicCore: JsonLogicCore): AnyReturns 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. 
 
-    def evaluate(condition: JsonLogicCore, logicOperatorToValue: Map[ComposeLogic, Map[String, Any]]): AnyReturns 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. 
 
-    def evaluateComposeLogic(condition: ComposeLogic, logicToValue: Map[ComposeLogic, Map[String, Any]]): AnyReturns 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]
 
-    def evaluateValueLogic(condition: ValueLogic[_]): AnyReturns 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]
 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-    def hashCode(): Int- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-   final  def isInstanceOf[T0]: Boolean- Definition Classes
- Any
 
-   final  def ne(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def notify(): Unit- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-   final  def notifyAll(): Unit- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-    def toString(): String- Definition Classes
- AnyRef → Any
 
-   final  def wait(arg0: Long, arg1: Int): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
 
-   final  def wait(): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
Deprecated Value Members
-    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.