Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

AnyTypePattern.java 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 AnyTypePattern extends AbstractTypePattern {
  13. public static final String ANYTYPE_DETAIL = "*";
  14. AnyTypePattern(AST ast) {
  15. super(ast, ANYTYPE_DETAIL);
  16. }
  17. List<?> internalStructuralPropertiesForType(int apiLevel) {
  18. return null;
  19. }
  20. ASTNode clone0(AST target) {
  21. AnyTypePattern cloned = new AnyTypePattern(target);
  22. cloned.setSourceRange(getStartPosition(), getLength());
  23. return cloned;
  24. }
  25. boolean subtreeMatch0(ASTMatcher matcher, Object other) {
  26. if (matcher instanceof AjASTMatcher) {
  27. AjASTMatcher ajmatcher = (AjASTMatcher) matcher;
  28. return ajmatcher.match(this, other);
  29. }
  30. return false;
  31. }
  32. void accept0(ASTVisitor visitor) {
  33. if (visitor instanceof AjASTVisitor) {
  34. AjASTVisitor ajVisitor = (AjASTVisitor) visitor;
  35. ajVisitor.visit(this);
  36. ajVisitor.endVisit(this);
  37. }
  38. }
  39. }