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.

GenericTreeNodesVisitorI.java 1.2KB

12345678910111213141516171819202122232425262728293031
  1. /* *******************************************************************
  2. * Copyright (c) 1999-2001 Xerox Corporation,
  3. * 2002 Palo Alto Research Center, Incorporated (PARC).
  4. * All rights reserved.
  5. * This program and the accompanying materials are made available
  6. * under the terms of the Common Public License v1.0
  7. * which accompanies this distribution and is available at
  8. * http://www.eclipse.org/legal/cpl-v10.html
  9. *
  10. * Contributors:
  11. * Xerox/PARC initial implementation
  12. * ******************************************************************/
  13. package org.aspectj.testing.compare;
  14. /**
  15. * Visit a node-pair in the trees,
  16. * signalling whether to continue traversal.
  17. */
  18. public interface GenericTreeNodesVisitorI {
  19. /**
  20. * Visit nodes in parallel trees.
  21. * One (but not both) of the input nodes may be null.
  22. * @param lhs the GenericTreeNode on the left-hand-side of a binary operation
  23. * (may be null)
  24. * @param lhs the GenericTreeNode on the right-hand-side of a binary operation
  25. * (may be null)
  26. * @return true if should continue visiting
  27. */
  28. public boolean visit(GenericTreeNode lhs, GenericTreeNode rhs);
  29. }