Package pro.projo.generation.utilities
Class MethodFilter
java.lang.Object
pro.projo.generation.utilities.MethodFilter
public class MethodFilter extends Object
The
MethodFilter checks whether the matching criteria specified by an
@Interface annotation apply to a given method.- Author:
- Mirko Raner
-
Constructor Summary
Constructors Constructor Description MethodFilter(Interface annotation)Creates a newMethodFilterwith pre-compiled predicates for the givenInterfaceannotation. -
Method Summary
Modifier and Type Method Description booleanmatches(ExecutableElement method)Matches a method against the filter criteria.
-
Constructor Details
-
MethodFilter
Creates a newMethodFilterwith pre-compiled predicates for the givenInterfaceannotation.- Parameters:
annotation- theInterfaceannotation
-
-
Method Details
-
matches
Matches a method against the filter criteria.- Parameters:
method- theExecutableElement- Returns:
trueif the method matches,falseotherwise
-