選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

TemporaryTypeMunger.java 1.3KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* *******************************************************************
  2. * Copyright (c) 2008 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. * ******************************************************************/
  10. package org.aspectj.weaver;
  11. import java.util.Map;
  12. /**
  13. * Some methods need a temporary type munger (because ConcreteTypeMunger is abstract - dont ask...).
  14. *
  15. * TODO ought to remove the need for this or at least sort out the two methods that are in it, they look weird...
  16. *
  17. * @author AndyClement
  18. */
  19. public class TemporaryTypeMunger extends ConcreteTypeMunger {
  20. public TemporaryTypeMunger(ResolvedTypeMunger munger, ResolvedType aspectType) {
  21. super(munger, aspectType);
  22. }
  23. @Override
  24. public ConcreteTypeMunger parameterizeWith(Map parameterizationMap, World world) {
  25. throw new UnsupportedOperationException("Cannot be called on a TemporaryTypeMunger");
  26. }
  27. @Override
  28. public ConcreteTypeMunger parameterizedFor(ResolvedType targetType) {
  29. throw new UnsupportedOperationException("Cannot be called on a TemporaryTypeMunger");
  30. }
  31. }