Interface TraceableComponent

All Superinterfaces:
Locatable, Traceable
All Known Implementing Classes:
AccumulatorRule, GlobalParam, GlobalVariable, MemoFunction, NamedTemplate, StreamableUserFunction, TemplateRule, TemplateRuleEE, UndeclaredVariable, UserFunction, XQueryExpression, XQueryExpressionEE

public interface TraceableComponent extends Traceable
A construct whose execution can be notified to a TraceListener. In practice this is a function or template or global variable.
  • Method Details

    • getBody

      Expression getBody()
      Get the expression at the root of the expression tree used to evaluate this construct
      Returns:
      the root expression
    • setBody

      void setBody(Expression expression)
      Set the expression to be used to evaluate this construct
      Parameters:
      expression - the evaluation expression
    • getTracingTag

      String getTracingTag()
      Get a string to identify the type of component
      Returns:
      an identifying string