Skip to content

Commit

Permalink
Update README.md and README_EN.md
Browse files Browse the repository at this point in the history
  • Loading branch information
frost-lotus committed Feb 18, 2022
1 parent 889b54e commit 7bdb7db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ public interface TestReflection {
#### 2. build一次,让我生成相关的代码。

#### 3. 可以尽情的反射代码
构造函数
构造函数
```java
TestReflection testReflection = BRTestReflection.get()._new("a");
TestReflection testReflection = BRTestReflection.get()._new("a", "b");
```

反射方法
反射方法
```java
// 静态方法
BRTestReflection.get().testStaticInvoke("static", 0);
Expand All @@ -106,7 +106,7 @@ BRTestReflection.get().testStaticInvoke("static", 0);
BRTestReflection.get(testReflection).testContextInvoke("context", 0);
```

反射变量
反射变量
```java
// 静态变量
String staticValue = BRTestReflection.get().sStaticValue();
Expand All @@ -115,7 +115,7 @@ String staticValue = BRTestReflection.get().sStaticValue();
String contextValue = BRTestReflection.get(testReflection).mContextValue();
```

设置变量
设置变量
```java
// 静态变量
BRTestReflection.get().setsStaticValue(staticValue + " changed");
Expand Down
8 changes: 4 additions & 4 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ public interface TestReflection {
#### 2. Build your project, it will generate the code automatically.

#### 3. Write the code heartily!
Constructor
Constructor:
```java
TestReflection testReflection = BRTestReflection.get()._new("a");
TestReflection testReflection = BRTestReflection.get()._new("a", "b");
```

Reflect Methods
Reflect Methods:
```java
// Static Method
BRTestReflection.get().testStaticInvoke("static", 0);
Expand All @@ -104,7 +104,7 @@ BRTestReflection.get().testStaticInvoke("static", 0);
BRTestReflection.get(testReflection).testContextInvoke("context", 0);
```

Reflect Fields
Reflect Fields:
```java
// Static Field
String staticValue = BRTestReflection.get().sStaticValue();
Expand All @@ -113,7 +113,7 @@ String staticValue = BRTestReflection.get().sStaticValue();
String contextValue = BRTestReflection.get(testReflection).mContextValue();
```

Set the value of Fields
Set the value of Fields:
```java
// Static Field
BRTestReflection.get().setsStaticValue(staticValue + " changed");
Expand Down

0 comments on commit 7bdb7db

Please sign in to comment.