AcWing 1294. 樱花
792 2023-04-03 05:16:02
execution(modifiers-pattern,ret-type-pattern,declaring-type-pattern,name-pattern(param-pattern),throws-pattern)
简化后:execution(ret-type-pattern,name-pattern(param-pattern))
execution(public * *(..))
:任意公共的方法。
execution(* set*(..))
:
*
:任意返回值set*(..)
:任意包下任意类中的以set开头的方法execution(* com.xyz.service.impl.*.*(..))
:
*
:任意返回值com.xyz.service.impl.*.*(..)
:com.xyz.service.impl包下任意类中的任意方法execution(* com.xyz.service..*.*(..))
*
:任意返回值com.xyz.service..*.*(..)
:com.xyz.service包及其任意子包下任意类中的任意方法execution(* *..service.*.*(..))
*
:任意返回值*..service..(..)
:(不止一个包)下属子包为service包下任意类中的任意方法execution(* *.service.*.*(..))
*
:任意返回值*.service.*.*(..)
:(只有一个包)下属子包为service包下任意类中的任意方法