forked from Linyuzai/concept
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tanghanzheng
committed
Aug 31, 2022
1 parent
8bf12ab
commit 2458d45
Showing
17 changed files
with
397 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...inherit-core/src/main/java/com/github/linyuzai/inherit/core/annotation/InheritFields.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...concept-inherit-core/src/main/java/com/github/linyuzai/inherit/core/flag/InheritFlag.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,37 @@ | ||
package com.github.linyuzai.inherit.core.flag; | ||
|
||
/** | ||
* 继承标识 | ||
* <p> | ||
* 用于扩展额外功能 | ||
*/ | ||
public enum InheritFlag { | ||
|
||
/** | ||
* 继承字段时有效 | ||
* <p> | ||
* 根据字段生成 builder 对应的方法 | ||
*/ | ||
BUILDER, | ||
|
||
/** | ||
* 继承字段时有效 | ||
* <p> | ||
* 根据字段生成 getter 对应的方法 | ||
*/ | ||
GETTER, | ||
|
||
/** | ||
* 继承字段时有效 | ||
* <p> | ||
* 根据字段生成 setter 对应的方法 | ||
*/ | ||
SETTER, | ||
|
||
/** | ||
* 表示同时处理自身字段和方法 | ||
* <p> | ||
* 搭配其他标识使用 | ||
*/ | ||
OWN | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.