Class DocumentCalculator


  • public class DocumentCalculator
    extends java.lang.Object
    Author:
    Thomas Gundersen
    • Constructor Summary

      Constructors 
      Constructor Description
      DocumentCalculator​(java.lang.String expression)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Number evaluate​(Document doc, java.util.Map<java.lang.String,​java.lang.Object> variables)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DocumentCalculator

        public DocumentCalculator​(java.lang.String expression)
                           throws com.yahoo.document.select.parser.ParseException
        Throws:
        com.yahoo.document.select.parser.ParseException
    • Method Detail

      • evaluate

        public java.lang.Number evaluate​(Document doc,
                                         java.util.Map<java.lang.String,​java.lang.Object> variables)