diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-09-03 01:44:11 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-09-03 01:44:11 +0200 |
commit | 6b7919166e9a550d7d2b1f7156c794e76905fcab (patch) | |
tree | cce1a4286e56e1fef8bb5244d51d68847e7650e2 /src | |
parent | 780a17e583a9fb9261b8423acaf8afae5533fd19 (diff) | |
download | lombok-6b7919166e9a550d7d2b1f7156c794e76905fcab.tar.gz lombok-6b7919166e9a550d7d2b1f7156c794e76905fcab.tar.bz2 lombok-6b7919166e9a550d7d2b1f7156c794e76905fcab.zip |
Added support for checking if an annotation parameter is explicitly mentioned. This functionality is used in quite a few places, so generalized it.
Diffstat (limited to 'src')
-rw-r--r-- | src/lombok/core/AnnotationValues.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lombok/core/AnnotationValues.java b/src/lombok/core/AnnotationValues.java index 9d098b59..15b4f3b7 100644 --- a/src/lombok/core/AnnotationValues.java +++ b/src/lombok/core/AnnotationValues.java @@ -298,6 +298,10 @@ public class AnnotationValues<A extends Annotation> { return v == null ? Collections.<String>emptyList() : v.raws; } + public boolean isExplicit(String annotationMethodName) { + return values.get(annotationMethodName) != null; + } + /** * Convenience method to return the first result in a {@link #getRawExpressions(String)} call. * |