tangentum technologies    
 

Deutsch

   
   
 
    method-contains-ref-to-package

method-contains-ref-to-package

Name

method-contains-ref-to-package -- Selects methods that contain instructions with references to a package that is a member of a specified set of packages.

Synopsis

<... ... method-contains-ref-to-package="package-name (, package-name)*" ... />

Description

This condition-attribute evaluates to true for methods that contain instructions with references to one of the specified packages.

The packages are given as a comma-separated list of package-names. The order of the given package-names is not important. Each package-name should follow the conventions used for naming packages in Java.

Specifying unnamed packages: To select references to an unnamed package, specify the empty string as one of the package-names.

Specifying subpackages: This predicate does not select classes from subpackages of the specified packages. To select classes from subpackages, use the predicates method-contains-ref-to-subpackage or method-contains-ref-to-package-or-subpackage respectively.