@@ -68,20 +68,22 @@ boolean considerSubtypes(Callable callable) {
68
68
}
69
69
70
70
/**
71
- * Holds if the given package is a candidate for automodeling.
71
+ * Holds if the given package, type, name and signature is a candidate for automodeling.
72
72
*
73
- * This predicate is extensible, so that different packages can be selected at runtime.
73
+ * This predicate is extensible, so that different endpoints can be selected at runtime.
74
74
*/
75
- extensible predicate automodelCandidatePackageFilter ( string package ) ;
75
+ extensible predicate automodelCandidateFilter (
76
+ string package , string type , string name , string signature
77
+ ) ;
76
78
77
79
/**
78
- * Holds if the given package is a candidate for automodeling.
80
+ * Holds if the given package, type, name and signature is a candidate for automodeling.
79
81
*
80
82
* This relies on an extensible predicate, and if that is not supplied then
81
- * all packages are considered candidates.
83
+ * all endpoints are considered candidates.
82
84
*/
83
- bindingset [ package]
84
- predicate automodelCandidateFilter ( string package ) {
85
- not automodelCandidatePackageFilter ( _) or
86
- automodelCandidatePackageFilter ( package )
85
+ bindingset [ package, type , name , signature ]
86
+ predicate includeAutomodelCandidate ( string package , string type , string name , string signature ) {
87
+ not automodelCandidateFilter ( _ , _ , _ , _) or
88
+ automodelCandidateFilter ( package , type , name , signature )
87
89
}
0 commit comments