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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
matches(CtCFlowBreak cflowBreak)
Tells if the given element matches.
-
Constructor Details
-
ReturnOrThrowFilter
public ReturnOrThrowFilter()
-
-
Method Details
-
matches
Description copied from interface:Filter
Tells if the given element matches.- Specified by:
matches
in interfaceFilter<CtCFlowBreak>
- Parameters:
cflowBreak
- - the element to be checked for a match. Parameter element is never null ifQuery
is used.
-