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;
9   
10  /***
11   * Holds an name/index tuple.
12   * 
13   * @author <a href="mailto:jboner@codehaus.org">Jonas Bonér </a>
14   */
15  public final class NameIndexTuple {
16      /***
17       * The index.
18       */
19      private final AdviceInfo m_index;
20  
21      /***
22       * The name.
23       */
24      private final String m_name;
25  
26      /***
27       * Sets the name and the advice index.
28       * 
29       * @param name the name
30       * @param index the index
31       */
32      public NameIndexTuple(final String name, final AdviceInfo index) {
33          m_name = name;
34          m_index = index;
35      }
36  
37      /***
38       * Returns the name.
39       * 
40       * @return the name
41       */
42      public String getName() {
43          return m_name;
44      }
45  
46      /***
47       * Returns the index.
48       * 
49       * @return the index
50       */
51      public AdviceInfo getIndex() {
52          return m_index;
53      }
54  }