aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/experimental
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2012-06-12 18:53:47 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2012-06-12 18:53:47 +0200
commit7496a8f17047a1e1dd4a968632b1e4d2cbb5fda1 (patch)
tree1df877304b32947c39e9810a304bc4707893c233 /src/core/lombok/experimental
parenta6a8e4c5554ff000bbac43f4f7f530f661e036d2 (diff)
downloadlombok-7496a8f17047a1e1dd4a968632b1e4d2cbb5fda1.tar.gz
lombok-7496a8f17047a1e1dd4a968632b1e4d2cbb5fda1.tar.bz2
lombok-7496a8f17047a1e1dd4a968632b1e4d2cbb5fda1.zip
Port of lombok-pg's @ExtensionMethod support for eclipse. Doesn't work yet.
Diffstat (limited to 'src/core/lombok/experimental')
-rw-r--r--src/core/lombok/experimental/ExtensionMethod.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/lombok/experimental/ExtensionMethod.java b/src/core/lombok/experimental/ExtensionMethod.java
index b25e535e..a9eaa6b7 100644
--- a/src/core/lombok/experimental/ExtensionMethod.java
+++ b/src/core/lombok/experimental/ExtensionMethod.java
@@ -60,5 +60,9 @@ public @interface ExtensionMethod {
/** All types whose static methods will be exposed as extension methods. */
Class<?>[] value();
+ /**
+ * If {@code true}, an applicable extension method is used (if found) even if the method call already was compilable (this is the default).
+ * If {@code false}, an extension method is only used if the method call is not also defined by the type itself.
+ */
boolean suppressBaseMethods() default true;
}