~ubuntu-branches/ubuntu/wily/aspectj/wily-proposed

« back to all changes in this revision

Viewing changes to org.aspectj/modules/org.aspectj.matcher/src/org/aspectj/weaver/patterns/BindingTypePattern.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2011-03-15 23:54:31 UTC
  • mfrom: (1.2.5 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20110315235431-iq2gxbsx08kpwuiw
* New upstream release.
* Updated Standards-Version to 3.9.1 (no changes needed).
* Fix local Javadoc links:
  - d/patches/07_javadoc_links.diff: Use locally installed
   javadoc packages and hyperlink with them.
  - d/control: Add B-D on default-java-doc and libasm3-java-doc.
* d/control: Drop B-D on itself (our new bootstrap infrastructure doesn't need
  that anymore).
* Split packages into :
  - aspectj: only contains CLI tools.
  - libaspectj-java: JAR librairies for /usr/share/java.
  - libaspectj-java-doc: 4 API's Javadoc.
  - aspectj-doc: Programming Guides and SDK Documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* *******************************************************************
2
 
 * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
 
2
 * Copyright (c) 2002, 2010 Palo Alto Research Center, Incorporated (PARC).
3
3
 * All rights reserved. 
4
4
 * This program and the accompanying materials are made available 
5
5
 * under the terms of the Eclipse Public License v1.0 
8
8
 *  
9
9
 * Contributors: 
10
10
 *     PARC     initial implementation 
 
11
 *     Nieraj Singh
11
12
 * ******************************************************************/
12
13
 
13
14
package org.aspectj.weaver.patterns;
25
26
 
26
27
public class BindingTypePattern extends ExactTypePattern implements BindingPattern {
27
28
        private int formalIndex;
 
29
        private String bindingName;
28
30
 
29
31
        public BindingTypePattern(UnresolvedType type, int index, boolean isVarArgs) {
30
32
                super(type, false, isVarArgs);
33
35
 
34
36
        public BindingTypePattern(FormalBinding binding, boolean isVarArgs) {
35
37
                this(binding.getType(), binding.getIndex(), isVarArgs);
 
38
                this.bindingName = binding.getName();
36
39
        }
37
40
 
38
41
        public int getFormalIndex() {
39
42
                return formalIndex;
40
43
        }
 
44
        
 
45
        public String getBindingName() {
 
46
                return bindingName;
 
47
        }
41
48
 
42
49
        public boolean equals(Object other) {
43
50
                if (!(other instanceof BindingTypePattern)) {