Skip to content

Commit

Permalink
1、修改文档
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyJingFish committed Nov 18, 2024
1 parent 0cae553 commit 3ad4c76
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
7 changes: 5 additions & 2 deletions docs/AndroidAopMatchClassMethod.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<br> <li>```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)</li><br> <li>```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</li> <br> <li><strong>When you modify the configuration of this aspect, in most cases you should clean the project and continue development</strong></li>
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
Expand Down
6 changes: 5 additions & 1 deletion docs/AndroidAopModifyExtendsClass.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 6 additions & 2 deletions docs/zh/AndroidAopMatchClassMethod.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@
- 设置为false,如果子类没有匹配的方法则不作处理
!!! note
另外不是所有类都可以Hook进去<br> <li>```type``` 类型为 ```SELF``` 时,```targetClassName``` 所设置的类必须是安装包里的代码。
例如:如果这个类(如:Toast)在 **android.jar** 里边是不行的。如有这种需求应该使用[@AndroidAopReplaceClass](/AndroidAOP/zh/AndroidAopReplaceClass)</li><br> <li>```type``` 类型不是 ```SELF``` 时,这个切面要想有作用需要有匹配的那个方法,如果子类没有重写匹配的方法,子类就不会被匹配到,使用 overrideMethod 可忽略此限制 </li> <br> <li><strong>当你修改这个切面的配置后多数情况下你应该clean项目再继续开发</strong></li>
另外不是所有类都可以Hook进去
- ```type``` 类型为 ```SELF``` 时,```targetClassName``` 所设置的类必须是安装包里的代码。
例如:如果这个类(如:Toast)在 **android.jar** 里边是不行的。如有这种需求应该使用[@AndroidAopReplaceClass](/AndroidAOP/zh/AndroidAopReplaceClass)
- ```type``` 类型不是 ```SELF``` 时,这个切面要想有作用需要有匹配的那个方法,如果子类没有重写匹配的方法,子类就不会被匹配到,使用 overrideMethod 可忽略此限制
- **当你修改这个切面的配置后多数情况下你应该clean项目再继续开发**
## 创建切面处理类
Expand Down
6 changes: 5 additions & 1 deletion docs/zh/AndroidAopModifyExtendsClass.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

另外填写类名如果是内部类时不使用`$`字符,而是用`.`

**:warning::warning::warning:但需要特别注意的是修改后的继承类不可以继承被修改的类,修改后的类的继承类一般都设置为修改前的类的继承类**


!!! note
- **:warning::warning::warning:但需要特别注意的是修改后的继承类不可以继承被修改的类,修改后的类的继承类一般都设置为修改前的类的继承类**
- **当你修改这个切面的配置后多数情况下你应该clean项目再继续开发**

## 使用示例

Expand Down

0 comments on commit 3ad4c76

Please sign in to comment.