Class EvaluationRequest.EvaluationRequestBuilder

  • Enclosing class:
    EvaluationRequest

    public static final class EvaluationRequest.EvaluationRequestBuilder
    extends Object
    Builder of the EvaluationRequest.
    • Method Detail

      • setStackFrame

        public EvaluationRequest.EvaluationRequestBuilder setStackFrame​(IBslStackFrame stackFrame)
        Sets stackFrame the stack frame that contains evaluating expression
        Parameters:
        stackFrame - the stack frame that contains evaluating expression, cannot be null
        Returns:
        a reference to the builder, never null
      • setInterface

        public EvaluationRequest.EvaluationRequestBuilder setInterface​(ViewInterface evaluationInterface)
        Sets the value interface to evaluate value with.
        Parameters:
        evaluationInterface - the value interface to evaluate value with, cannot be null
        Returns:
        a reference to the builder, never null
      • setInterfaces

        public EvaluationRequest.EvaluationRequestBuilder setInterfaces​(List<ViewInterface> evaluationInterfaces)
        Sets the value interfaces to evaluate value with.
        Parameters:
        evaluationInterfaces - the value interfaces to evaluate value with, first matching interface will be used for evaluation, cannot be null
        Returns:
        a reference to the builder, never null
      • setMaxTestSize

        public EvaluationRequest.EvaluationRequestBuilder setMaxTestSize​(int maxTestSize)
        Sets the value maximum text representation size.
        Parameters:
        maxTestSize - the value maximum text representation size or 0 for unlimited and full representation
        Returns:
        a reference to the builder, never null
      • setMultiLine

        public EvaluationRequest.EvaluationRequestBuilder setMultiLine​(boolean isMultiLine)
        Sets whether text result may contain multiple lines.
        Parameters:
        isMultiLine - whether text result may contain multiple lines. If false then miltiple line text will be cut at first line break
        Returns:
        a reference to the builder, never null
      • setEvaluationPage

        public EvaluationRequest.EvaluationRequestBuilder setEvaluationPage​(int offset,
                                                                            int length)
        Sets the evaliation page for BSL collections evaliation.
        Parameters:
        offset - the beginning offset of the subset of elements to evaluate
        length - the number of elements to evaluate
        Returns:
        a reference to the builder, never null
      • setExpressionUuid

        public EvaluationRequest.EvaluationRequestBuilder setExpressionUuid​(UUID expressionUuid)
        Sets the UUID of the root expression.
        Parameters:
        expressionUuid - the UUID of the root expression, cannot be null
        Returns:
        a reference to the builder, never null
      • setEvaluationListener

        public EvaluationRequest.EvaluationRequestBuilder setEvaluationListener​(IEvaluationListener evaluationListener)
        Sets the listener to report result to when expression will be evaluated.
        Parameters:
        evaluationListener - the listener to report result to when expression will be evaluated, cannot be null
        Returns:
        a reference to the builder, never null
      • build

        public IEvaluationRequest build()
        Builds the request.
        Returns:
        the builded request