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.

HierarchyWalker.java 935B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* *******************************************************************
  2. * Copyright (c) 2003,2010 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. * Contributors:
  10. * Mik Kersten initial implementation
  11. * Andy Clement
  12. * ******************************************************************/
  13. package org.aspectj.asm;
  14. /**
  15. * @author Mik Kersten
  16. * @author Andy Clement
  17. */
  18. public abstract class HierarchyWalker {
  19. public HierarchyWalker() {
  20. }
  21. protected void preProcess(IProgramElement node) {
  22. }
  23. protected void postProcess(IProgramElement node) {
  24. }
  25. public IProgramElement process(IProgramElement node) {
  26. preProcess(node);
  27. node.walk(this);
  28. postProcess(node);
  29. return node;
  30. }
  31. }