public static short WEAVER_VERSION_MINOR_AJ150 = 0;
// These are the weaver major/minor numbers for AspectJ 1.6.0
+ public static short WEAVER_VERSION_MAJOR_AJ160M2 = 5;
public static short WEAVER_VERSION_MAJOR_AJ160 = 4;
public static short WEAVER_VERSION_MINOR_AJ160 = 0;
// These are the weaver major/minor versions for *this* weaver
- private static short CURRENT_VERSION_MAJOR = WEAVER_VERSION_MAJOR_AJ160;
+ private static short CURRENT_VERSION_MAJOR = WEAVER_VERSION_MAJOR_AJ160M2;
private static short CURRENT_VERSION_MINOR = WEAVER_VERSION_MINOR_AJ160;
public static final WeaverVersionInfo UNKNOWN =
boolean hasAnnotation(UnresolvedType ofType);
ResolvedType[] getAnnotationTypes();
- // SomeType getAnnotation(UnresolvedType ofType);
+
+ AnnotationX getAnnotationOfType(UnresolvedType ofType);
}
else sb.append(theRealASMAnnotation.stringify());
}
+ public boolean hasNameValuePair(String n, String v) {
+ if (mode==MODE_BCEL) return theRealBcelAnnotation.hasNameValuePair(n,v);
+ else throw new RuntimeException("Cannot be anything else");
+ }
+
+ public boolean hasNamedValue(String n) {
+ if (mode==MODE_BCEL) return theRealBcelAnnotation.hasNamedValue(n);
+ else throw new RuntimeException("Cannot be anything else");
+ }
+
}
\ No newline at end of file
public ResolvedType[] getAnnotationTypes() {
return realMember.getAnnotationTypes();
}
+
+ public AnnotationX getAnnotationOfType(UnresolvedType ofType) {
+ return realMember.getAnnotationOfType(ofType);
+ }
public void setAnnotationTypes(UnresolvedType[] annotationtypes) {
realMember.setAnnotationTypes(annotationtypes);
public ResolvedMember parameterizedWith(Map m, World w) {
return realMember.parameterizedWith(m,w);
}
+
+ public String getAnnotationDefaultValue() {
+ return realMember.getAnnotationDefaultValue();
+ }
}
public ResolvedType[][] getParameterAnnotationTypes() {
throw new UnsupportedOperationException("You should resolve this member and call getParameterAnnotationTypes() on the result...");
}
+ public String getAnnotationDefaultValue() {
+ throw new UnsupportedOperationException("You should resolve this member and call getAnnotationDefaultValue() on the result...");
+ }
+
/* (non-Javadoc)
* @see org.aspectj.weaver.Member#getSignature()
*/
throw new UnsupportedOperationException("You should resolve this member and call hasAnnotation() on the result...");
}
- /* (non-Javadoc)
- * @see org.aspectj.weaver.AnnotatedElement#getAnnotationTypes()
- */
- /* (non-Javadoc)
- * @see org.aspectj.weaver.Member#getAnnotationTypes()
- */
public ResolvedType[] getAnnotationTypes() {
throw new UnsupportedOperationException("You should resolve this member and call hasAnnotation() on the result...");
}
-
+
+ public AnnotationX getAnnotationOfType(UnresolvedType ofType) {
+ throw new UnsupportedOperationException("You should resolve this member and call getAnnotationOfType() on the result...");
+ }
+
/* (non-Javadoc)
* @see org.aspectj.weaver.Member#getAnnotations()
*/
return EMPTY_RESOLVED_TYPE_ARRAY;
}
+ public AnnotationX getAnnotationOfType(UnresolvedType ofType) {
+ return null;
+ }
+
public final UnresolvedType getSuperclass(World world) {
return getSuperclass();
}
public static final String INCORRECT_TARGET_FOR_DECLARE_ANNOTATION = "incorrectTargetForDeclareAnnotation";
public static final String NO_MATCH_BECAUSE_SOURCE_RETENTION = "noMatchBecauseSourceRetention";
+ // Annotation Value messages
+ public static final String INVALID_ANNOTATION_VALUE = "invalidAnnotationValue";
+ public static final String UNKNOWN_ANNOTATION_VALUE = "unknownAnnotationValue";
+
// < Java5 messages
public static final String ATANNOTATION_ONLY_SUPPORTED_AT_JAVA5_LEVEL = "atannotationNeedsJava5";
public static final String ATWITHIN_ONLY_SUPPORTED_AT_JAVA5_LEVEL = "atwithinNeedsJava5";
bindingNonRuntimeRetentionAnnotation=Annotation type {0} does not have runtime retention
noMatchBecauseSourceRetention=Failing match because annotation ''{0}'' on type ''{1}'' has SOURCE retention. Matching allowed when RetentionPolicy is CLASS or RUNTIME
+# Annotation value
+invalidAnnotationValue=Invalid annotation value ''{0}'', expected {1} value
+unknownAnnotationValue=The annotation ''{0}'' does not define a value named ''{1}''
+
# Generics
cantDecpMultipleParameterizations=Cannot declare parent {0} onto type {1} since it already has {2} in its hierarchy
noParameterizedTypePatternInHandler=a parameterized type pattern may not be used in a handler pointcut expression