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.

ExposeTypeMunger.java 1.1KB

123456789101112131415161718192021222324252627282930
  1. /* *******************************************************************
  2. * Copyright (c) 2007 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;
  13. /**
  14. * Special kind of privileged access munger which exposes a type to be public.
  15. */
  16. public class ExposeTypeMunger extends PrivilegedAccessMunger {
  17. public ExposeTypeMunger(UnresolvedType typeToExpose) {
  18. super(new ResolvedMemberImpl(Member.STATIC_INITIALIZATION, typeToExpose, 0, ResolvedType.VOID, "<clinit>", UnresolvedType.NONE));
  19. }
  20. public String toString() {
  21. return "ExposeTypeMunger("+getSignature().getDeclaringType().getName()+")";
  22. }
  23. public String getExposedTypeSignature() {
  24. return getSignature().getDeclaringType().getSignature();
  25. }
  26. }