lombok
美 ['l?mb?k]
英 [?l?mb?k] 
英漢解釋
英英解釋
例句
I'll give you an overview of Lombok, including how it works, what it's best used for, and a quick list of its current pros and cons.
我將為大家提供對Lombok的概述,包括它的工作方式以及它最適用的場景,并簡單羅列其優缺點。
On the whole, these problems can be worked around, and with time most of them will probably be resolved by the Lombok and Eclipse dev teams.
總的說來,這些問題可以繞過,而且今后其中大部分問題可能會被Lombok與Eclipsedev團隊所解決。
Lombok allows you to enter a parenthetical parameter for that purpose.
為此,Lombok讓您可以輸入一個附加參數。
At the time of this writing, however, Eclipse provides the smoothest code-editing experience when used with Lombok.
然而,在寫這篇文章的時候,在與Lombok一起使用時,Eclipse能提供最流暢的編碼體驗。
If you decide to use Lombok, there's a chance that you might want to extend it to generate your own boilerplate code.
如果決定采用Lombok,那就可能會希望對其進行擴展,來生成自己的樣板代碼。
Lombok generates most common Java boilerplate code, including getters, setters, equals, and hashCode, just to name a few.
Lombok生成大部分公共Java樣本代碼,包括getters、setters、equals、以及hashCode,僅舉幾個例子。
At first, it looked like Lombok Timur was the exception, as it was not on lowland.
初看起來,似乎東龍目島不會被洪水淹沒,因為它不是低地。
In my opinion, any Lombok extension needs to support both javac and ECJ, at least for now.
以我的觀點看,任何Lombok擴展都需要同時支持javac與ECJ,至少現在是這樣。
Lombok also provides less-verbose means of synchronizing methods.
Lombok還可以減少同步方法所需的代碼的冗余。
Before adding Lombok to your toolbox, definitely consider its pros and cons, and determine for yourself if the gains justify the loses.
在向工具箱中增加Lombok之前一定要考慮好它的利弊,確定所得是否大于所失。
To demonstrate a Lombok extension, I wrote up a quick sample project that generates JavaBeans plumbing code.
為了演示Lombok擴展,我編寫了一個用于生成JavaBeans全程(plumbing)代碼的非常簡單的項目。
Lombok supports more than one mechanism for triggering code generation, including the very popular Java annotations.
Lombok支持多個觸發代碼生成的機制,包括了非常流行的Java注釋。
In Lombok, annotations are no longer just metadata: they actually act as commands driving code generation.
在Lombok中,注釋不再僅是元數據:它們實質上是像命令一樣驅動代碼生成。
Lombok uses annotations to identify classes and blocks of Java code in an effort to eliminate lines of code.
為了消除代碼行,Lombok使用注釋來標識類和Java代碼塊。
Because there is no Java source for Lombok-generated code, debugging gets a little bit confusing.
由于不存在用于Lombok生成代碼的Java源,調試會變得有點混亂。
Second, certain Lombok transformations do change Java syntax as we know it, in a fundamental way.
其次,正如我們所了解的,特定Lombok轉換將根本地改變Java語法。
As you can see, the Lombok team has documented what blocks of code generate what.
正如您所見,Lombok團隊已經記錄了什么塊產生什么。
By modifying (or transforming) the AST, Lombok keeps your source code trim and free of bloat, unlike plain-text code-generation.
通過修改(或轉換)AST,Lombok可對源代碼進行修剪,來避免膨脹,這與純文本代碼生成不同。
As I mentioned before, Lombok's annotations could do a better job of communicating that they are more than just metadata.
正如前面所提到的,Lombok的注釋不僅是元數據,它還能很好地完成通信任務。
You may not always want to accept the other defaults Lombok gives you, either.
您可能并不總是想接受Lombok為您提供的其他默認值。
The included sample code (see Download) extends Lombok to generate JavaBeans boilerplate code.
所包括的示例代碼(見下載)擴展Lombok來生成JavaBeans樣板代碼。
As I previously mentioned, Lombok currently supports common code patterns, but not all of them are covered, including JavaBeans.
正如我前面所提到的,Lombok當前支持公共代碼模式,但并不能完全涵蓋,包括JavaBeans。
Lombok Canton City Technology Trade Co. , Ltd. is a new production-oriented technology companies.
廣州市龍目島科技貿易有限公司是新型的科技生產型公司。
With Lombok, a . java file no longer shows what's in a . class file.
有了Lombok,.java文件無法再展示.class文件所包含的內容。
Lombok uses non-public APIs in both javac and ECJ to accomplish its clever code-generation technique.
Lombok在javac與ECJ中采用非公共API來實現其智能的代碼生成技術。
Then you might want to try out Project Lombok, which is an open source, code-generation library for the Java platform.
那么您可能會想要嘗試ProjectLombok,它是個開源的、用于Java平臺的代碼生成庫。
Because your code will be plugging into Lombok, it is very likely that it will need to use similar, if not the same APIs.
因為代碼將被插入到Lombok中,所以即使沒有相同的API,也應當擁有類似的API。
For developers who like to look under the hood, Lombok's delombok tool, accessed via the Maven or Ant command line, will be your headlamp.
對于想要了解內部情況的開發人員,Lombokdelombok工具將為您提供指導,可通過Maven或者Ant命令行訪問。
Code that has been "delombok-ed" will contain all the transformations made previously by Lombok, in plain text.
“已被delombok處理過”的代碼將會包含之前由Lombok所完成的轉換,格式為普通文本。
This article has presented some guidelines regarding when to extend Lombok and described how to do it.
本文提供了一些關于擴展Lombok的指導,并描述了如何進行操作。
The Lombok team use an improved version of Ivy that they have developed themselves, ivyplusplus (see Resources).
Lombok團隊采用他們自己開發的Ivy的優化版本,ivyplusplus(見參考資料)。
I'll then focus on one of the most powerful, but also complex, use cases for Lombok: extending it for a custom code base.
接下來,我將為大家介紹一個最有用,但也很復雜的Lombok用例:將其擴展為一個自定義代碼基。
Delombok takes code already transformed by Lombok and generates plain Java source files from it.
Delombok獲取通過Lombok轉換的代碼,并依據它來生成普通的Java源文件。
However you end up doing it, you should ultimately see a Lombok installation screen.
不管采取何種方式,應該最終都能看到一個Lombok安裝屏幕。
The major argument against Lombok is that it performs "too much magic. "
反對Lombok的觀點中最主要的是,它表現“太多的魔術”。
The good news is that the Lombok team has done a fairly good job of documenting how they use javac and ECJ to generate AST nodes.
有一個好消息是,Lombok團隊已經完成了大量關于利用javac與ECJ生成AST節點的相關文檔工作。
Other than that, Eclipse's debugger works just as usual when Lombok is present.
除此之外,當Lombok出現時,Eclipse調試工具會向平常一樣工作。
Lombok examines your code and doesn't create its own version of getStyle based on the property.
Lombok檢查您的代碼并且不會基于這個屬性創建其自己的getStyle版本。
Open a prompt in your operating system, go to the directory where lombok. jar is installed, and type java -jar lombok. jar.
在您的操作系統中打開一個提示符,進入到安裝了lombok.jar的那個目錄,并鍵入java-jarlombok.jar。
I used Eclipse 3. 6 (Helios) and a snapshot of Lombok's git repository for version 0. 10-BETA2.
我采用了Eclipse3.6(Helios)以及用于版本0.10-BETA2的Lombokgit庫的快照。