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.

AsmConstants.java 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* *******************************************************************
  2. * Copyright (c) 2006 Contributors
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/epl-v10.html
  8. *
  9. * Contributors:
  10. * Andy Clement IBM initial implementation
  11. * ******************************************************************/
  12. package org.aspectj.weaver.asm;
  13. import org.aspectj.weaver.AjAttribute.Aspect;
  14. import org.aspectj.weaver.AjAttribute.WeaverVersionInfo;
  15. import org.aspectj.org.objectweb.asm.Attribute;
  16. public class AsmConstants {
  17. public static Attribute[] ajAttributes; // attributes ASM needs to know about
  18. static {
  19. ajAttributes = new Attribute[]{
  20. new AjASMAttribute(Aspect.AttributeName),
  21. new AjASMAttribute(WeaverVersionInfo.AttributeName),
  22. new AjASMAttribute("org.aspectj.weaver.WeaverState"),
  23. new AjASMAttribute("org.aspectj.weaver.PointcutDeclaration"),
  24. new AjASMAttribute("org.aspectj.weaver.Declare"),
  25. new AjASMAttribute("org.aspectj.weaver.TypeMunger"),
  26. new AjASMAttribute("org.aspectj.weaver.Privileged"),
  27. new AjASMAttribute("org.aspectj.weaver.MethodDeclarationLineNumber"),
  28. new AjASMAttribute("org.aspectj.weaver.SourceContext"),
  29. new AjASMAttribute("org.aspectj.weaver.Advice"),
  30. new AjASMAttribute("org.aspectj.weaver.EffectiveSignature"),
  31. new AjASMAttribute("org.aspectj.weaver.AjSynthetic")
  32. };
  33. }
  34. }