Interface PhraseHandler

    • Method Detail

      • handlePhrase

        Phrase handlePhrase​(Phrase phrase)
        Method called for handling an encountered Phrase during traversal.

        Return the passed in phrase if modified in place or no modification to tree should be made. Return a new Phrase instance to replace the passed in phrase in the query tree. Return null to remove the phrase from the tree.

        NOTE: returning a new Phrase instance or null will result in stopping any recursive traversal.