Class EvaluationJob

  • All Implemented Interfaces:
    Comparable, org.eclipse.core.runtime.IAdaptable

    public class EvaluationJob
    extends org.eclipse.core.runtime.jobs.Job
    Debug evaluation job. Performs evaluation of expressions or variables, using IEvaluationEngine.

    Clients may use for convenience.

    • Constructor Detail

      • EvaluationJob

        public EvaluationJob​(IBslStackFrame stackFrame,
                             UUID expressionUuid,
                             BslValuePath path,
                             ViewInterface evaluationInterface,
                             IEvaluationListener evaluationListener)
        Create EvaluationJob to evaluate the given expression.
        Parameters:
        stackFrame - the stack frame, that contains evaluating expression, cannot be null
        expressionUuid - the UUID of the root expression, cannot be null
        path - the BSL value path (see BslValuePath), cannot be null
        evaluationInterface - the value interfaces to evaluate value with, cannot be null
        evaluationListener - the listener to report result to, when expression will be evaluated, cannot be null
      • EvaluationJob

        public EvaluationJob​(IBslStackFrame stackFrame,
                             UUID expressionUuid,
                             BslValuePath path,
                             ViewInterface evaluationInterface,
                             int maxTextSize,
                             boolean isMultiLine,
                             IEvaluationListener evaluationListener)
        Create EvaluationJob to evaluate the given expression.
        Parameters:
        stackFrame - the stack frame, that contains evaluating expression, cannot be null
        expressionUuid - the UUID of the root expression, cannot be null
        path - the BSL value path (see BslValuePath), cannot be null
        evaluationInterface - the value interfaces to evaluate value with, cannot be null
        maxTextSize - the value maximum text representation size or 0 for unlimited and full representation
        isMultiLine - whether text result may contain multiple lines. If false then miltiple line text will be cut at first line break
        evaluationListener - the listener to report result to, when expression will be evaluated, cannot be null
      • EvaluationJob

        public EvaluationJob​(IBslStackFrame stackFrame,
                             UUID expressionUuid,
                             BslValuePath path,
                             List<ViewInterface> evaluationInterfaces,
                             int maxTextSize,
                             boolean isMultiLine,
                             IEvaluationListener evaluationListener)
        Create EvaluationJob to evaluate the given expression.
        Parameters:
        stackFrame - the stack frame, that contains evaluating expression, cannot be null
        expressionUuid - the UUID of the root expression, cannot be null
        path - the BSL value path (see BslValuePath), cannot be null
        evaluationInterfaces - the value interfaces to evaluate value with, first matching interface will be used for evaluation, cannot be null
        maxTextSize - the value maximum text representation size or 0 for unlimited and full representation
        isMultiLine - whether text result may contain multiple lines. If false then miltiple line text will be cut at first line break
        evaluationListener - the listener to report result to, when expression will be evaluated, cannot be null
      • EvaluationJob

        public EvaluationJob​(IBslStackFrame stackFrame,
                             IEvaluationChain chain)
        Create EvaluationJob to evaluate given evaluation requests.
        Parameters:
        stackFrame - the BSL stack frame to use for evaluation, cannot be null
        requests - request to evaluate, cannot be null
      • EvaluationJob

        public EvaluationJob​(IBslStackFrame stackFrame,
                             IEvaluationListener evaluationListener)
        Create EvaluationJob to evaluate the given stack frame variables.
        Parameters:
        stackFrame - the BSL stack frame to use for evaluation, cannot be null
        evaluationListener - the listener to report result to, when variables will be evaluated, cannot be null
    • Method Detail

      • belongsTo

        public boolean belongsTo​(Object family)
        Overrides:
        belongsTo in class org.eclipse.core.runtime.jobs.Job
      • run

        protected org.eclipse.core.runtime.IStatus run​(org.eclipse.core.runtime.IProgressMonitor monitor)
        Specified by:
        run in class org.eclipse.core.runtime.jobs.Job
      • getEngine

        protected IEvaluationEngine getEngine()
        Returns evaluation engine.
        Returns:
        evaluation engine, never null