Class BuildContextGenerator

    • Constructor Detail

      • BuildContextGenerator

        public BuildContextGenerator()
        Instantiates a BuildContextGenerator for making decisions about combining constituents.
    • Method Detail

      • getContext

        public String[] getContext​(Parse[] constituents,
                                   int index)
        Finds the predictive context used to determine how constituent at the specified index should be combined with other constituents.
        Parameters:
        constituents - The constituents which have yet to be combined into new constituents.
        index - The index of the constituent which is being considered.
        Returns:
        The context for building constituents at the specified index.