01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package org.codehaus.aspectwerkz.joinpoint;
08:
09: import java.io.Serializable;
10:
11: /**
12: * Provides static and reflective information about the join point.
13: *
14: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
15: */
16: public interface Signature extends Serializable {
17: /**
18: * Returns the declaring class.
19: *
20: * @return the declaring class
21: */
22: Class getDeclaringType();
23:
24: /**
25: * Returns the modifiers for the signature. <p/>Could be used like this:
26: * <p/>
27: * <pre>
28: * boolean isPublic = java.lang.reflect.Modifier.isPublic(signature.getModifiers());
29: * </pre>
30: *
31: * @return the mofifiers
32: */
33: int getModifiers();
34:
35: /**
36: * Returns the name (f.e. name of method of field).
37: *
38: * @return
39: */
40: String getName();
41:
42: }
|