View Javadoc

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