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
8
* Contributors: Nieraj Singh - initial implementation
9
*******************************************************************/
10
package org.aspectj.org.eclipse.jdt.core.dom;
12
import java.util.List;
15
* TODO: Add support for proper AnnotationPatterns instead of the annotation
19
public class AnyWithAnnotationTypePattern extends TypePattern {
21
AnyWithAnnotationTypePattern(AST ast, String annotationExpression) {
22
// Is this correct? should the "*" be added
23
super(ast, annotationExpression);
26
ASTNode clone0(AST target) {
27
ASTNode node = new AnyWithAnnotationTypePattern(target,
28
getTypePatternExpression());
29
node.setSourceRange(getStartPosition(), getLength());
33
List<?> internalStructuralPropertiesForType(int apiLevel) {
37
boolean subtreeMatch0(ASTMatcher matcher, Object other) {
38
if (matcher instanceof AjASTMatcher) {
39
AjASTMatcher ajmatcher = (AjASTMatcher) matcher;
40
return ajmatcher.match(this, other);
45
void accept0(ASTVisitor visitor) {
46
if (visitor instanceof AjASTVisitor) {
47
AjASTVisitor ajVisitor = (AjASTVisitor) visitor;
48
ajVisitor.visit(this);
49
ajVisitor.endVisit(this);