Interface ResolutionContext


public interface ResolutionContext
The resolution context holds the current context object.
  • Method Details

    • evaluate

      CompletionStage<Object> evaluate(String expression)
      Parse and evaluate the expression.
      Parameters:
      expression -
      Returns:
      the result
    • evaluate

      CompletionStage<Object> evaluate(Expression expression)
      Evaluate the expression.
      Parameters:
      expression -
      Returns:
      the result
    • createChild

      ResolutionContext createChild(Object data, Map<String,SectionBlock> extendingBlocks)
      Create a child resolution context.
      Parameters:
      data -
      extendingBlocks -
      Returns:
      a new child resolution context
    • getData

      Object getData()
      Returns:
      the data
    • getParent

      ResolutionContext getParent()
      Returns:
      the parent context or null
    • getExtendingBlock

      SectionBlock getExtendingBlock(String name)
      If no extending block exists for the given name then the parent context (if present) is queried.
      Parameters:
      name -
      Returns:
      the extending block for the specified name or null
    • getCurrentExtendingBlock

      SectionBlock getCurrentExtendingBlock(String name)
      Unlike getExtendingBlock(String) this method never queries the parent context.
      Parameters:
      name -
      Returns:
      the extending block for the specified name or null
    • getAttribute

      Object getAttribute(String key)
      Parameters:
      key -
      Returns:
      the attribute or null
      See Also:
    • getEvaluator

      Evaluator getEvaluator()
      Returns:
      the evaluator