Class EvaluationChain

    • Constructor Detail

      • EvaluationChain

        public EvaluationChain​(IBslStackFrame stackFrame,
                               IEvaluationRequest... requests)
        Constructor of EvaluationChain.
        Parameters:
        stackFrame - the BSL stack frame to perform re-evaluation on, cannot be null
        requests - the root evaluation requests, cannot be null
    • Method Detail

      • combine

        public IEvaluationChain combine​(IEvaluationRequest... requests)
        Description copied from interface: IEvaluationChain
        Combine this evaluation chain with given possibly-null evaluation requests. Resulting evaluation chain requests will contain all given evaluation requests.

        Order of the result evaluation chain requests will be:

        1. This evaluation chain requests.
        2. All merged evaluation requests in the same order as in method invocation.
        Specified by:
        combine in interface IEvaluationChain
        Parameters:
        requests - evaliation requests to combine this evaluation chain with, can be null or contain nulls, then these evaluation requests will be ignored during combining
        Returns:
        a reference to this evaluation chain to provide an ability to construct fluent queries, never null
      • combine

        public IEvaluationChain combine​(IEvaluationChain... chains)
        Description copied from interface: IEvaluationChain
        Combine this evaluation chain with given possibly-null evaluation chains. Resulting evaluation chain requests will contain all given evaluation chains evaluation requests.

        Order of the result evaluation chain requests will be:

        1. This evaluation chain requests.
        2. All merged evaluation chains requests in the same order as in method invocation.
        Specified by:
        combine in interface IEvaluationChain
        Parameters:
        chains - evaliation chains to combine this evaluation chain with, can be null or contain nulls, then these evaluation chains will be ignored during combining
        Returns:
        a reference to this evaluation chain to provide an ability to construct fluent queries, never null
      • getStackFrame

        public IBslStackFrame getStackFrame()
        Description copied from interface: IEvaluationChain
        Returns BSL stack frame this evaluation chain belongs to.
        Specified by:
        getStackFrame in interface IEvaluationChain
        Returns:
        BSL stack frame this evaluation chain belongs to, never null
      • size

        public int size()
        Description copied from interface: IEvaluationChain
        Returns size of the evaluation chain: number of requests to perform this evaluation chain.
        Specified by:
        size in interface IEvaluationChain
        Returns:
        size of the evaluation chain number of requests to perform this evaluation chain
      • toRequests

        public IEvaluationRequest[] toRequests()
        Description copied from interface: IEvaluationChain
        Returns evaluation requests to perform this entire evaluation chain.
        Specified by:
        toRequests in interface IEvaluationChain
        Returns:
        evaluation requests to perform this entire evaluation chain, never null or empty