From 6b7919166e9a550d7d2b1f7156c794e76905fcab Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Thu, 3 Sep 2009 01:44:11 +0200 Subject: Added support for checking if an annotation parameter is explicitly mentioned. This functionality is used in quite a few places, so generalized it. --- src/lombok/core/AnnotationValues.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 { return v == null ? Collections.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. * -- cgit