KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > aspectwerkz > joinpoint > Signature


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.aspectwerkz.joinpoint;
5
6 import java.io.Serializable JavaDoc;
7
8 /**
9  * 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 JavaDoc {
14   /**
15    * Returns the declaring class.
16    *
17    * @return the declaring class
18    */

19   Class JavaDoc 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 JavaDoc getName();
38
39 }
Popular Tags