Added support for checking if an annotation parameter is explicitly mentioned. This functionality is used in quite a few places, so generalized it.

This commit is contained in:
Reinier Zwitserloot committed 2009-09-03 01:44:11 +02:00
1 parent 780a17e583
commit 6b7919166e
1 file changed
+4
+4
View File
@@ -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.
*