lojix/wam_prolog/src/main/com/thesett/aima/logic/fol/wam/TermWalkers.java
public static TermWalker positionalGoalWalker(UnaryPredicate<Term> unaryPredicate, PositionalTermVisitor visitor)
    {
        TermWalker walker = positionalWalker(visitor);
        walker.setGoalPredicate(unaryPredicate);

        return walker;
    }
public static TermWalker positionalGoalWalker(UnaryPredicate<Term> unaryPredicate, PositionalTermVisitor visitor)
    {
        TermWalker walker = positionalWalker(visitor);
        walker.setGoalPredicate(unaryPredicate);

        return walker;
    }
public static TermWalker positionalGoalWalker ( UnaryPredicate < Term > unaryPredicate , PositionalTermVisitor visitor ) { TermWalker walker = positionalWalker ( visitor ) ; walker . setGoalPredicate ( unaryPredicate ) ; return walker ; }
Provides a positional depth first walk over a term, visiting only when a goal predicate matches.

@param  unaryPredicate The goal predicate.
@param  visitor        The visitor to apply to each term.

@return A positional depth first walk over a term, visiting only when a goal predicate matches.
Provides a positional depth first walk over a term visiting only when a goal predicate matches .