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 java.io.Serializable;
07:
08: /**
09: * Provides static and reflective information about the join point.
10: *
11: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
12: */
13: public interface Signature extends Serializable {
14: /**
15: * Returns the declaring class.
16: *
17: * @return the declaring class
18: */
19: Class getDeclaringType();
20:
21: /**
22: * Returns the modifiers for the signature. <p/>Could be used like this:
23: * <p/>
24: * <pre>
25: * boolean isPublic = java.lang.reflect.Modifier.isPublic(signature.getModifiers());
26: * </pre>
27: *
28: * @return the mofifiers
29: */
30: int getModifiers();
31:
32: /**
33: * Returns the name (f.e. name of method of field).
34: *
35: * @return
36: */
37: String getName();
38:
39: }
|