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.

ICommand.java 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 Eclipse Public License v1.0
  7. * which accompanies this distribution and is available at
  8. * http://www.eclipse.org/legal/epl-v10.html
  9. *
  10. * Contributors:
  11. * Xerox/PARC initial implementation
  12. * ******************************************************************/
  13. package org.aspectj.bridge;
  14. /**
  15. * Command wrapper with collecting parameter for messages.
  16. */
  17. public interface ICommand {
  18. /**
  19. * Run command with the given options.
  20. * @param args the String[] options for the command
  21. * @param handler the IMessageHandler for all output from
  22. * the command
  23. * @return true if the command completed successfully
  24. */
  25. boolean runCommand(String[] args, IMessageHandler handler);
  26. /**
  27. * Rerun the command.
  28. *
  29. * @param handler the IMessageHandler for all output from the command
  30. *
  31. * @return true if the command completed successfully
  32. */
  33. boolean repeatCommand(IMessageHandler handler);
  34. }