class Aquarium::Finders::PointcutFinder
PointcutFinder
¶ ↑
Locate named pointcuts in specified types or objects.
Constants
- CANONICAL_OPTIONS
- POINTCUT_FINDER_CANONICAL_OPTIONS
- POINTCUT_FINDER_CANONICAL_OPTIONS_KEYS_AS_SYMBOLS
Public Instance Methods
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:
Types¶ ↑
All the options supported by TypeFinder#find
.
Pointcut Names¶ ↑
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.
-
:matching => a variable/constant name, regular expression, or array of the same
-
:with_names_matching => same
-
:named => same
A name, regular expression or an array of the same that will be matched against pointcuts that are class constants only.
-
:constants_matching => a variable/constant name, regular expression, or array of the same
-
:constants_with_names_matching => same
-
:constants_named => same
A name, regular expression or an array of the same that will be matched against pointcuts that are class variables only.
-
:class_variables_matching => a variable/constant name, regular expression, or array of the same
-
:class_variables_with_names_matching => same
-
:class_variables_named => same
# File lib/aquarium/finders/pointcut_finder.rb 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