Class ExpressionFinder

  • All Implemented Interfaces:
    ExpressionVisitorBoolean

    public abstract class ExpressionFinder
    extends java.lang.Object
    implements ExpressionVisitorBoolean
    Base class for "finding" something from an expression. This class visits all reachable expressions and returns boolean. In any binary expression, if one branch returns true, then the binary expression itself returns true. Thus it can be used to find something from an expression. Note that unless the derived class do something, this implementation will recurse infinitely.