01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.aspectwerkz.joinpoint;
05:
06: import com.tc.backport175.Annotation;
07:
08: /**
09: * Interface for the member signatures (method, constructor and field).
10: *
11: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
12: */
13: public interface MemberSignature extends Signature {
14:
15: /**
16: * Return the given annotation if any.
17: *
18: * @param annotationClass the annotation class
19: * @return the annotation or null
20: */
21: Annotation getAnnotation(Class annotationClass);
22:
23: /**
24: * Return all the annotations.
25: *
26: * @return annotations
27: */
28: Annotation[] getAnnotations();
29: }
|