You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NoTypePattern.java 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 v 2.0
  5. * which accompanies this distribution and is available at
  6. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  7. *
  8. * Contributors: Nieraj Singh - initial implementation
  9. *******************************************************************/
  10. package org.aspectj.org.eclipse.jdt.core.dom;
  11. import java.util.List;
  12. public class NoTypePattern extends AbstractTypePattern {
  13. NoTypePattern(AST ast) {
  14. super(ast);
  15. }
  16. List<?> internalStructuralPropertiesForType(int apiLevel) {
  17. return null;
  18. }
  19. public boolean isStar() {
  20. return false;
  21. }
  22. ASTNode clone0(AST target) {
  23. ASTNode node = new NoTypePattern(target);
  24. node.setSourceRange(getStartPosition(), getLength());
  25. return node;
  26. }
  27. void accept0(ASTVisitor visitor) {
  28. if (visitor instanceof AjASTVisitor) {
  29. AjASTVisitor ajVisitor = (AjASTVisitor) visitor;
  30. ajVisitor.visit(this);
  31. ajVisitor.endVisit(this);
  32. }
  33. }
  34. boolean subtreeMatch0(ASTMatcher matcher, Object other) {
  35. if (matcher instanceof AjASTMatcher) {
  36. AjASTMatcher ajmatcher = (AjASTMatcher) matcher;
  37. return ajmatcher.match(this, other);
  38. }
  39. return false;
  40. }
  41. }