lombok-ex/README-ENGLISH.md at master - GitHub
文章推薦指數: 80 %
package com.github.houbb.lombok.test.model; import java.io.Serializable; public class User implements Serializable { private static final Long ...
Skiptocontent
{{message}}
houbb
/
lombok-ex
Public
Notifications
Fork
18
Star
21
Code
Issues
3
Pullrequests
0
Actions
Projects
0
Wiki
Security
Insights
More
Code
Issues
Pullrequests
Actions
Projects
Wiki
Security
Insights
Permalink
master
Branches
Tags
Couldnotloadbranches
Nothingtoshow
{{refName}}
default
Couldnotloadtags
Nothingtoshow
{{refName}}
default
lombok-ex/README-ENGLISH.md
Gotofile
Gotofile
T
Gotoline
L
Copypath
Copypermalink
Thiscommitdoesnotbelongtoanybranchonthisrepository,andmaybelongtoaforkoutsideoftherepository.
Cannotretrievecontributorsatthistime
lombok-ex
Creativepurpose
Features
CHANGELOG
QuickStart
Require
mavenimport
@Serialannotation
compile
result
@Utilannotation
usage
result
@ToStringannotation
usage
result
ConfigType
javacode
classresult
@Sync
Usage
result
@Modifiers
Intro
Usage
result
Road-map
308lines(199sloc)
5.64KB
Raw
Blame
OpenwithDesktop
Viewraw
Viewblame
lombok-ex
中文文档
lombok-exisacompile-timeannotationframeworksimilartolombok.
Mainlyaddsomecommontoolsthatlombokdoesnotimplement,andyouwilluseyourself.
Thereisnolossinannotationperformanceatcompiletime.Oneannotationdoeseverything,nothird-partydependencies.
Creativepurpose
-Addedmissingannotationsoflomboktofacilitatedailydevelopmentanduse.
-Thesourcecodeoflombokisbasicallyunreadable,itshouldbeencrypted.
-Provideabasisforimprovingtheperformanceofotherannotation-relatedframeworks,andconsiderreplacingthemwithcompile-timeannotationslater.
Features
@Serial
@Util
@ToString
@Sync
@Modifiers
CHANGELOG
CHANGELOG
QuickStart
Require
jdk1.7+
maven3.x+
enableannotationprocess。
Ifyouuseeditor,pleasechecked【enableannotationprocess】
mavenimport
Ifsettofalse,youcandirectlychangethemodifiertotheonespecifiedbytheuser.
importcom.github.houbb.lombok.ex.annotation.Modifiers;
importcom.github.houbb.lombok.ex.constant.Flags;
@Modifiers(Flags.FINAL)
publicclassModifiersTest{
@Modifiers(Flags.VOLATILE)
privateintvalue;
@Modifiers(Flags.SYNCHRONIZED)
publicstaticvoidsyncTest(){
System.out.println("sync");
}
}
result
publicfinalclassModifiersTest{
privatevolatileintvalue;
publicModifiersTest(){
}
publicstaticsynchronizedvoidsyncTest(){
System.out.println("sync");
}
}
Road-map
ConfigandOptimize
@AutoLogimplements
@Equals@HashCode@EqualsAndHashCodeimplements
@NotNullforargumentcheck,likevalid
@Asyncasyncexecuteasync
bean-mapping,sensitive
ASTbasicframework
Idea:parsethetextdirectlythroughAST,andthenrebuildtheclassfilethroughASTcombinedwithjdkutils.
Go
Youcan’tperformthatactionatthistime.
Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession.
Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.
延伸文章資訊
- 1Lombok使用说明- 凝雨- Yun
Lombok使用说明. ... lombok项目的产生就是为了省去我们手动创建getter和setter方法的麻烦,它能够在我们编译源码 ... Serializable; import lom...
- 2@Serializable - Google Groups
public class Foo implements Serializable { ... ugly boilerplate, exactly the type of thing that L...
- 3How Java Records Beat Lombok - Medium
With records, serialization comes naturally. You can make records work with Lombok if you need th...
- 4lombok-ex/README-ENGLISH.md at master - GitHub
package com.github.houbb.lombok.test.model; import java.io.Serializable; public class User implem...
- 5lombok 简化Java 代码- 辰砂tj - 博客园
该注解会默认是生成一个无参构造。 Copy. public class User implements Serializable { private static final ...