diff --git a/docs/AndroidAopMatchClassMethod.md b/docs/AndroidAopMatchClassMethod.md index 35cd8dc7..3c72678b 100644 --- a/docs/AndroidAopMatchClassMethod.md +++ b/docs/AndroidAopMatchClassMethod.md @@ -44,8 +44,11 @@ This aspect is used to match a class and its corresponding method. This aspect f - Set to false, if there is no matching method in the subclass, no processing is done !!! note - In addition, not all classes can be hooked in
  • ```type``` Type is ```SELF``` When ```targetClassName``` is set, the class must be the code in the installation package. - For example: if this class (such as Toast) is in **android.jar**, it will not work. If you have such a requirement, you should use [@AndroidAopReplaceClass](/AndroidAOP/AndroidAopReplaceClass)

  • ```type``` When the type is not ```SELF```, this aspect needs to have a matching method to work. If the subclass does not override the matching method, the subclass will not be matched. Use overrideMethod to ignore this restriction

  • When you modify the configuration of this aspect, in most cases you should clean the project and continue development
  • + In addition, not all classes can be hooked in + + - ```type``` Type is ```SELF``` When ```targetClassName``` is set, the class must be the code in the installation package.For example: if this class (such as Toast) is in **android.jar**, it will not work. If you have such a requirement, you should use [@AndroidAopReplaceClass](/AndroidAOP/AndroidAopReplaceClass) + - ```type``` When the type is not ```SELF```, this aspect needs to have a matching method to work. If the subclass does not override the matching method, the subclass will not be matched. Use overrideMethod to ignore this restriction + - **When you modify the configuration of this aspect, in most cases you should clean the project and continue development** ## Create an aspect processing class diff --git a/docs/AndroidAopModifyExtendsClass.md b/docs/AndroidAopModifyExtendsClass.md index 439efce7..004b1e39 100644 --- a/docs/AndroidAopModifyExtendsClass.md +++ b/docs/AndroidAopModifyExtendsClass.md @@ -6,7 +6,11 @@ This function is relatively simple. It modifies the inherited class of a class. In addition, if the class name is an internal class, do not use the `$` character, but `.` -**:warning::warning::warning:But it should be noted that the modified inherited class cannot inherit the modified class. The inherited class of the modified class is generally set to the inherited class of the class before modification** + +!!! note + - **:warning::warning::warning:But it should be noted that the modified inherited class cannot inherit the modified class. The inherited class of the modified class is generally set to the inherited class of the class before modification** + - **When you modify the configuration of this aspect, in most cases you should clean the project and continue development** + ## Usage example diff --git a/docs/zh/AndroidAopMatchClassMethod.md b/docs/zh/AndroidAopMatchClassMethod.md index 25b7d433..76c637c9 100644 --- a/docs/zh/AndroidAopMatchClassMethod.md +++ b/docs/zh/AndroidAopMatchClassMethod.md @@ -49,8 +49,12 @@ - 设置为false,如果子类没有匹配的方法则不作处理 !!! note - 另外不是所有类都可以Hook进去
  • ```type``` 类型为 ```SELF``` 时,```targetClassName``` 所设置的类必须是安装包里的代码。 - 例如:如果这个类(如:Toast)在 **android.jar** 里边是不行的。如有这种需求应该使用[@AndroidAopReplaceClass](/AndroidAOP/zh/AndroidAopReplaceClass)

  • ```type``` 类型不是 ```SELF``` 时,这个切面要想有作用需要有匹配的那个方法,如果子类没有重写匹配的方法,子类就不会被匹配到,使用 overrideMethod 可忽略此限制

  • 当你修改这个切面的配置后多数情况下你应该clean项目再继续开发
  • + 另外不是所有类都可以Hook进去 + + - ```type``` 类型为 ```SELF``` 时,```targetClassName``` 所设置的类必须是安装包里的代码。 + 例如:如果这个类(如:Toast)在 **android.jar** 里边是不行的。如有这种需求应该使用[@AndroidAopReplaceClass](/AndroidAOP/zh/AndroidAopReplaceClass) + - ```type``` 类型不是 ```SELF``` 时,这个切面要想有作用需要有匹配的那个方法,如果子类没有重写匹配的方法,子类就不会被匹配到,使用 overrideMethod 可忽略此限制 + - **当你修改这个切面的配置后多数情况下你应该clean项目再继续开发** ## 创建切面处理类 diff --git a/docs/zh/AndroidAopModifyExtendsClass.md b/docs/zh/AndroidAopModifyExtendsClass.md index f253350f..8623bf9d 100644 --- a/docs/zh/AndroidAopModifyExtendsClass.md +++ b/docs/zh/AndroidAopModifyExtendsClass.md @@ -6,7 +6,11 @@ 另外填写类名如果是内部类时不使用`$`字符,而是用`.` -**:warning::warning::warning:但需要特别注意的是修改后的继承类不可以继承被修改的类,修改后的类的继承类一般都设置为修改前的类的继承类** + + +!!! note + - **:warning::warning::warning:但需要特别注意的是修改后的继承类不可以继承被修改的类,修改后的类的继承类一般都设置为修改前的类的继承类** + - **当你修改这个切面的配置后多数情况下你应该clean项目再继续开发** ## 使用示例