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.

DeclareAnnotationsPrinter.java 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* *******************************************************************
  2. * Copyright (c) 2010 Contributors
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v 2.0
  6. * which accompanies this distribution and is available at
  7. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  8. *
  9. * Contributors:
  10. * Andy Clement - SpringSource
  11. * ******************************************************************/
  12. //package org.aspectj.ajdt.internal.compiler;
  13. //
  14. //import org.aspectj.ajdt.internal.compiler.ast.DeclareAnnotationDeclaration;
  15. //import org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation;
  16. //import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodScope;
  17. //
  18. //class DeclareAnnotationsPrinter extends HelperPrinter {
  19. //
  20. // private DeclareAnnotationDeclaration dad;
  21. //
  22. // DeclareAnnotationsPrinter(DeclareAnnotationDeclaration md, MethodScope mscope) {
  23. // super(mscope);
  24. // output = new StringBuilder();
  25. // this.amd = md;
  26. // this.dad = md;
  27. // }
  28. //
  29. // public String print() {
  30. // return print(2);
  31. // }
  32. //
  33. // public String print(int tab) {
  34. // output = new StringBuilder();
  35. // Annotation[] annos = dad.annotations;
  36. // int count = 0;
  37. // for (int a = 0; a < annos.length; a++) {
  38. // Annotation anno = annos[a];
  39. // String aa = anno.type.toString();
  40. // if (!aa.startsWith("org.aspectj")) {
  41. // if (count > 0) {
  42. // output.append(' ');
  43. // }
  44. // printAnnotation(anno);
  45. // count++;
  46. // }
  47. // }
  48. // return output.toString();
  49. // }
  50. // }