|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpmp.AbstractMacro
pmp.macro.tools.Pause
public class Pause
Pauses for given amount of time or until key is pressed if no value is given. First parameter contains time to wait in milliseconds.
The second parameter specifies mode of interaction with standard input. See description of fields of this class for details.
Note: Waiting for keypress doesn't work when invoked from Ant.
If given value is greater than 1000, System.gc()
is invoked.
Title: PMP: Macroprocessor
Description: Java macroprocessor
Copyright: Copyright (c) 2005
Field Summary | |
---|---|
static java.lang.String |
INTR
Waits until elapses given amount of time or until keypress. |
static int |
PARAMS_REQUIRED
|
static java.lang.String |
SLEEP
Waits for given amount of time and then exits (default mode). |
static java.lang.String |
WAIT
Waits for given amount of time and then waits for keypress. |
Constructor Summary | |
---|---|
Pause()
|
Method Summary | |
---|---|
java.lang.String |
run(Macroprocessor mp,
java.lang.String[] args)
Main method of macro. |
Methods inherited from class pmp.AbstractMacro |
---|
getRequiredParams, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PARAMS_REQUIRED
public static final java.lang.String SLEEP
public static final java.lang.String WAIT
public static final java.lang.String INTR
Constructor Detail |
---|
public Pause()
Method Detail |
---|
public java.lang.String run(Macroprocessor mp, java.lang.String[] args)
AbstractMacro
run
in class AbstractMacro
mp
- reference to Macroprocessorargs
- parameters of macro. In args[0] is stored name of macro.
Subclasses are free to modify this array.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |