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.

IModelFilter.java 1.2KB

1234567891011121314151617181920212223242526272829303132
  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.asm;
  13. /**
  14. * When dumping the model out (for debugging/testing), various parts of it can be passed through this filter. Currently it is used
  15. * to ensure the source locations we dump out are independent of sandbox directory.
  16. *
  17. * @author Andy Clement
  18. */
  19. public interface IModelFilter {
  20. /**
  21. * Called when about to dump out an absolute file location, enabling it to be altered (eg.
  22. * c:/temp/ajcsSandbox/foo/ajctemp.12323/<BLAH> could become TEST_SANDBOX/<BLAH>
  23. */
  24. String processFilelocation(String loc);
  25. /**
  26. * When the relationship map is dumped, lines are prefixed with a handle ID. Return true if you want these, false if you do not.
  27. */
  28. boolean wantsHandleIds();
  29. }