FieldSelectorPlease see the Selectors page for a description of what a selector is and the criteria common to all three types of selector. A FieldSelector's job is to distinguish between fields. Listed below are the criteria which TypeSelector offers in addition to the criteria common to all selectors. TypeThis criterion directs the inclusion of a field based upon its type. ExampleMatches all fields whose type is serializable (serializableTypes is a reference to a TypeSelector specified elsewhere)
Matching DeclarerTo satisfy this criterion a field must be of the same type as its declarer. For example in Java source the manager field in this class matches its declarer: This is useful for recognizing compositional patterns. ExampleMatches any field whose type is the same as the class or interface in which it is declared
|