Class ReturnOrThrowFilter

java.lang.Object
spoon.reflect.visitor.filter.ReturnOrThrowFilter
All Implemented Interfaces:
Filter<CtCFlowBreak>

public class ReturnOrThrowFilter extends Object implements Filter<CtCFlowBreak>
This simple filter matches all the occurrences of a return or a throw statement (end of execution flow).
  • Constructor Details

    • ReturnOrThrowFilter

      public ReturnOrThrowFilter()
  • Method Details

    • matches

      public boolean matches(CtCFlowBreak cflowBreak)
      Description copied from interface: Filter
      Tells if the given element matches.
      Specified by:
      matches in interface Filter<CtCFlowBreak>
      Parameters:
      cflowBreak - - the element to be checked for a match. Parameter element is never null if Query is used.