tangentum technologies    
 

Deutsch

   
   
 
    method-with-signature-containing-all

method-with-signature-containing-all

Name

method-with-signature-containing-all -- Selects methods whose signature contains all types from a specified set of types.

Synopsis

<... ... method-with-signature-containing-all="type-name (, type-name)*" ... />

Description

This condition-attribute evaluates to true for methods with a signature that has all types of the specified set of types as member.

The types (classes, interfaces and built-in types) are given as a comma-separated list of type-names. The order of the type-names is not important. The type-names follow the conventions used in Java:

  • Built-in types are given with their standard name, i.e. boolean, byte, char, double, float, int, long, and short,

  • Arrays of built-in types are given using the conventions for arrays, e.g. "boolean[]", or "double[][]".

  • Classes and interfaces are given with their fully-qualified name, e.g. "com.abc_company.A_class".

    To simplify writing of standard-classes like "java.lang.String", "java.lang.Integer", or "java.lang.Object", the package-name "java.lang" may be omitted. Therefore "String", "Integer", or "Object" are equally valid class-names. This rule applies for classes and interfaces defined in package "java.lang" only.

    To name classes or interfaces from an unnamed package, like class "MyApplet", a dot must be prepended to the name, e.g. ".MyApplet".

  • Arrays of classes and interfaces are also given using the conventions for arrays, e.g. "com.abc_company.A_class[]", "String[][]", or ".MyApplet[]".

As an example take the following methods:

foo()
foo(java.lang.String)
foo(java.lang.String[],java.lang.String)
bar(java.lang.String[],java.lang.String)
bar(com.abc_company.A_class,int[])

Some selections with their results:

<log method-with-signature-containing-all="java.lang.String"/>
<!-------------------------------------------------------------->
<!-- foo(java.lang.String)                                    -->
<!-- foo(java.lang.String[],java.lang.String)                 -->
<!-- bar(java.lang.String[],java.lang.String)                 -->


<log method-with-signature-containing-all="String"/>
<!-------------------------------------------------------------->
<!-- foo(java.lang.String)                                    -->
<!-- foo(java.lang.String[],java.lang.String)                 -->
<!-- bar(java.lang.String[],java.lang.String)                 -->


<log method-with-signature-containing-all="String,String[]"/>
<!-------------------------------------------------------------->
<!-- foo(java.lang.String[],java.lang.String)                 -->
<!-- bar(java.lang.String[],java.lang.String)                 -->