org.aspectj.tools.ajc
Class Main.CommandController

java.lang.Object
  extended by org.aspectj.tools.ajc.Main.CommandController
Enclosing class:
Main

public static class Main.CommandController
extends java.lang.Object

controller for repeatable command delays until input or file changed or removed


Field Summary
static long DEFAULT_DELAY
          default 5-second delay between filesystem checks
static java.lang.String INCREMENTAL_OPTION
           
static long MAX_DELAY
          maximum 10-minute delay between filesystem checks
static java.lang.String TAG_FILE_OPTION
           
 
Constructor Summary
Main.CommandController()
           
 
Method Summary
 boolean commandLineIncremental()
           
protected  void fileCheckDelay()
          delay between filesystem checks, returning if quit is set
 boolean incremental()
           
 java.lang.String[] init(java.lang.String[] args, IMessageHandler sink)
           
 void quit()
           
 boolean running()
           
 void setDelay(long delay)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_FILE_OPTION

public static java.lang.String TAG_FILE_OPTION

INCREMENTAL_OPTION

public static java.lang.String INCREMENTAL_OPTION

MAX_DELAY

public static long MAX_DELAY
maximum 10-minute delay between filesystem checks


DEFAULT_DELAY

public static long DEFAULT_DELAY
default 5-second delay between filesystem checks

Constructor Detail

Main.CommandController

public Main.CommandController()
Method Detail

init

public java.lang.String[] init(java.lang.String[] args,
                               IMessageHandler sink)
Parameters:
argList - read and strip incremental args from this
sink - IMessageHandler for error messages
Returns:
String[] remainder of args

running

public boolean running()
Returns:
true if init(String[]) called but doRepeatCommand has not returned false

setDelay

public void setDelay(long delay)
Parameters:
delay - milliseconds between filesystem checks

incremental

public boolean incremental()
Returns:
true if INCREMENTAL_OPTION or TAG_FILE_OPTION was in args

commandLineIncremental

public boolean commandLineIncremental()
Returns:
true if INCREMENTAL_OPTION was in args

quit

public void quit()

fileCheckDelay

protected void fileCheckDelay()
delay between filesystem checks, returning if quit is set