1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /********************************************************************
- * Copyright (c) 2010 Contributors. All rights reserved.
- * This program and the accompanying materials are made available
- * under the terms of the Eclipse Public License v 2.0
- * which accompanies this distribution and is available at
- * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
- *
- * Contributors: Nieraj Singh - initial implementation
- *******************************************************************/
- package org.aspectj.org.eclipse.jdt.core.dom;
-
- import java.util.List;
-
- public class AnyTypePattern extends AbstractTypePattern {
-
- public static final String ANYTYPE_DETAIL = "*";
-
- AnyTypePattern(AST ast) {
- super(ast, ANYTYPE_DETAIL);
- }
-
- List<?> internalStructuralPropertiesForType(int apiLevel) {
- return null;
- }
-
- ASTNode clone0(AST target) {
- AnyTypePattern cloned = new AnyTypePattern(target);
- cloned.setSourceRange(getStartPosition(), getLength());
- return cloned;
- }
-
- boolean subtreeMatch0(ASTMatcher matcher, Object other) {
- if (matcher instanceof AjASTMatcher) {
- AjASTMatcher ajmatcher = (AjASTMatcher) matcher;
- return ajmatcher.match(this, other);
- }
- return false;
- }
-
- void accept0(ASTVisitor visitor) {
- if (visitor instanceof AjASTVisitor) {
- AjASTVisitor ajVisitor = (AjASTVisitor) visitor;
- ajVisitor.visit(this);
- ajVisitor.endVisit(this);
- }
- }
- }
|