| Class | Aquarium::Finders::PointcutFinder |
| In: |
lib/aquarium/finders/pointcut_finder.rb
|
| Parent: | Object |
Locate named pointcuts in specified types or objects.
| POINTCUT_FINDER_CANONICAL_OPTIONS | = | {} |
| CANONICAL_OPTIONS | = | Aquarium::Finders::TypeFinder::CANONICAL_OPTIONS.merge(POINTCUT_FINDER_CANONICAL_OPTIONS) |
| POINTCUT_FINDER_CANONICAL_OPTIONS_KEYS_AS_SYMBOLS | = | POINTCUT_FINDER_CANONICAL_OPTIONS.keys.map {|k| k.intern} |
Returns a Aquarium::Finders::FinderResult, where the "matched" keys are the input types, type names, and/or regular expressions, and objects for which matches were found and the corresponding values are the class constant or variable pointcuts that were found. The keys in the "not_matched" part of the FinderResult are the specified types and objects for which no matches were found.
The options are as follows:
All the options supported by TypeFinder#find.
A name, regular expression or an array of the same. (Mixed allowed.) In the types searched, the names will be matched against class constants and class variable pointcut definitions.
A name, regular expression or an array of the same that will be matched against pointcuts that are class constants only.
A name, regular expression or an array of the same that will be matched against pointcuts that are class variables only.
# File lib/aquarium/finders/pointcut_finder.rb, line 50
50: def find options = {}
51: init_specification options, CANONICAL_OPTIONS do
52: finish_specification_initialization
53: end
54: result = do_find_pointcuts unless noop
55: unset_specification
56: result
57: end