~ubuntu-branches/ubuntu/trusty/aspectj/trusty

« back to all changes in this revision

Viewing changes to org.aspectj/modules/org.aspectj.ajdt.core/src/org/aspectj/org/eclipse/jdt/core/dom/AnyWithAnnotationTypePattern.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2011-03-15 23:54:31 UTC
  • mfrom: (1.1.5 upstream) (7.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110315235431-7d8cs3gvs4tnqx7t
Tags: 1.6.11+dfsg-1
* 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
/********************************************************************
 
2
 * Copyright (c) 2010 Contributors. All rights reserved. 
 
3
 * This program and the accompanying materials are made available 
 
4
 * under the terms of the Eclipse Public License v1.0 
 
5
 * which accompanies this distribution and is available at 
 
6
 * http://eclipse.org/legal/epl-v10.html 
 
7
 *  
 
8
 * Contributors: Nieraj Singh - initial implementation
 
9
 *******************************************************************/
 
10
package org.aspectj.org.eclipse.jdt.core.dom;
 
11
 
 
12
import java.util.List;
 
13
 
 
14
/**
 
15
 * TODO: Add support for proper AnnotationPatterns instead of the annotation
 
16
 * expression
 
17
 * 
 
18
 */
 
19
public class AnyWithAnnotationTypePattern extends TypePattern {
 
20
 
 
21
        AnyWithAnnotationTypePattern(AST ast, String annotationExpression) {
 
22
                // Is this correct? should the "*" be added
 
23
                super(ast, annotationExpression);
 
24
        }
 
25
 
 
26
        ASTNode clone0(AST target) {
 
27
                ASTNode node = new AnyWithAnnotationTypePattern(target,
 
28
                                getTypePatternExpression());
 
29
                node.setSourceRange(getStartPosition(), getLength());
 
30
                return node;
 
31
        }
 
32
 
 
33
        List<?> internalStructuralPropertiesForType(int apiLevel) {
 
34
                return null;
 
35
        }
 
36
 
 
37
        boolean subtreeMatch0(ASTMatcher matcher, Object other) {
 
38
                if (matcher instanceof AjASTMatcher) {
 
39
                        AjASTMatcher ajmatcher = (AjASTMatcher) matcher;
 
40
                        return ajmatcher.match(this, other);
 
41
                }
 
42
                return false;
 
43
        }
 
44
        
 
45
        void accept0(ASTVisitor visitor) {
 
46
                if (visitor instanceof AjASTVisitor) {
 
47
                        AjASTVisitor ajVisitor = (AjASTVisitor) visitor;
 
48
                        ajVisitor.visit(this);
 
49
                        ajVisitor.endVisit(this);
 
50
                }
 
51
        }
 
52
}