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.

ExposeTypeMunger.java 1.1KB

12345678910111213141516171819202122232425262728293031
  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, UnresolvedType.VOID, "<clinit>",
  19. UnresolvedType.NONE), false);
  20. }
  21. public String toString() {
  22. return "ExposeTypeMunger(" + getSignature().getDeclaringType().getName() + ")";
  23. }
  24. public String getExposedTypeSignature() {
  25. return getSignature().getDeclaringType().getSignature();
  26. }
  27. }