Package spoon.reflect.visitor.filter
Class ReturnOrThrowFilter
java.lang.Object
spoon.reflect.visitor.filter.ReturnOrThrowFilter
- All Implemented Interfaces:
Filter<CtCFlowBreak>
This simple filter matches all the occurrences of a return or a throw
statement (end of execution flow).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(CtCFlowBreak cflowBreak) Tells if the given element matches.
-
Constructor Details
-
ReturnOrThrowFilter
public ReturnOrThrowFilter()
-
-
Method Details
-
matches
Description copied from interface:FilterTells if the given element matches.- Specified by:
matchesin interfaceFilter<CtCFlowBreak>- Parameters:
cflowBreak- - the element to be checked for a match. Parameter element is never null ifQueryis used.
-