lombok

lombok

美 ['l?mb?k]  英 [?l?mb?k]

  • n.【旅】龍目島
  • 網絡龍波島;島東邊的龍目;龍母島

英漢解釋

n.
1.
【旅】龍目島,印度尼西亞西努沙登加拉省島嶼

英英解釋

n.

例句

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.

總的說來這些問題可以繞過而且今后其中大部分問題可能LombokEclipsedev團隊解決

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樣本代碼包括getterssettersequals以及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擴展需要同時支持javacECJ至少現在這樣

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.

LombokjavacECJ采用公共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團隊已經完成大量關于利用javacECJ生成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-BETA2Lombokgit快照

熱門查詢