java.lang.Object
org.opencds.cqf.cql.engine.execution.State

public class State extends Object
State represents the internal state of the CqlEngine.
  • Constructor Details

  • Method Details

    • getCache

      public Cache getCache()
    • getEnvironment

      public Environment getEnvironment()
    • getCurrentLibrary

      public org.hl7.elm.r1.Library getCurrentLibrary()
    • getParameters

      public Map<String,Object> getParameters()
    • setParameters

      public void setParameters(org.hl7.elm.r1.Library library, Map<String,Object> parameters)
    • setParameter

      public void setParameter(String libraryName, String name, Object value)
    • enterLibrary

      public boolean enterLibrary(String libraryName)
    • exitLibrary

      public void exitLibrary(boolean enteredLibrary)
    • getContextValues

      public Map<String,Object> getContextValues()
    • setContextValues

      public void setContextValues(Map<String,Object> contextValues)
    • getWindows

      public Deque<Deque<Variable>> getWindows()
    • setWindows

      public void setWindows(Deque<Deque<Variable>> windows)
    • getDebugMap

      public DebugMap getDebugMap()
    • setDebugMap

      public void setDebugMap(DebugMap debugMap)
    • getDebugResult

      public DebugResult getDebugResult()
    • shouldDebug

      public DebugAction shouldDebug(Exception e)
    • shouldDebug

      public DebugAction shouldDebug(org.hl7.elm.r1.Element node)
    • setEvaluationDateTime

      public void setEvaluationDateTime(ZonedDateTime evaluationZonedDateTime)
    • getEvaluationZonedDateTime

      public ZonedDateTime getEvaluationZonedDateTime()
    • getEvaluationDateTime

      public DateTime getEvaluationDateTime()
    • init

      public void init(org.hl7.elm.r1.Library library)
    • pop

      public void pop()
    • push

      public void push(Variable variable)
    • resolveVariable

      public Variable resolveVariable(String name)
    • resolveVariable

      public Variable resolveVariable(String name, boolean mustResolve)
    • pushWindow

      public void pushWindow()
    • popWindow

      public void popWindow()
    • setContextValue

      public void setContextValue(String context, Object contextValue)
    • enterContext

      public void enterContext(String context)
    • exitContext

      public void exitContext()
    • getCurrentContext

      public String getCurrentContext()
    • getCurrentContextValue

      public Object getCurrentContextValue()
    • getEvaluatedResources

      public Set<Object> getEvaluatedResources()
    • clearEvaluatedResources

      public void clearEvaluatedResources()
    • pushEvaluatedResourceStack

      public void pushEvaluatedResourceStack()
    • popEvaluatedResourceStack

      public void popEvaluatedResourceStack()
    • resolveAlias

      public Object resolveAlias(String name)
    • resolveIdentifierRef

      public Object resolveIdentifierRef(String name)
    • logDebugResult

      public void logDebugResult(org.hl7.elm.r1.Element node, Object result, DebugAction action)
    • logDebugMessage

      public void logDebugMessage(SourceLocator locator, String message)
    • logDebugWarning

      public void logDebugWarning(SourceLocator locator, String message)
    • logDebugTrace

      public void logDebugTrace(SourceLocator locator, String message)
    • logDebugError

      public void logDebugError(CqlException e)