Annotation Type MethodSpec
-
public @interface MethodSpecSpecification of the intercepted method.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringclassNameThe fully qualified class name of the method.java.lang.StringmethodNameThe name of the method.java.lang.String[]parameterTypesThe array of all parameter types that the method declares.java.lang.StringreturnTypeThe return type that the method declares.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleansubtypesIffalse, only the method contained inclassName()will be instrumented.
-
-
-
-
parameterTypes
java.lang.String[] parameterTypes
The array of all parameter types that the method declares. The types must be fully qualified. Packages are separated with dots, inner classes with '$'. Arrays are specified with a trailing '[]'.- Returns:
- the array of the declared types of all parameters
-
-
-
subtypes
boolean subtypes
Iffalse, only the method contained inclassName()will be instrumented. Iftrue, the matching methods inclassName()and all its subtypes will be instrumented.- Returns:
- if methods from subtypes should be instrumented, too
- Default:
- false
-
-