pobs.action
Class PLog
java.lang.Object
pobs.action.PLog
- All Implemented Interfaces:
- PAction
- public class PLog
- extends java.lang.Object
- implements PAction
Outputs a specified string to stdout whenever this action is performed.
- Author:
- Martijn W. van der Lee
Field Summary |
java.lang.String |
string
|
Constructor Summary |
PLog(java.lang.String string)
Sole constructor. |
Method Summary |
void |
perform(PTarget target,
java.lang.String data)
Performs an action on the specified target using the specified data. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
string
public java.lang.String string
PLog
public PLog(java.lang.String string)
- Sole constructor.
- Parameters:
string
- the string to output on action.
perform
public void perform(PTarget target,
java.lang.String data)
- Description copied from interface:
PAction
- Performs an action on the specified target using the specified data.
- Specified by:
perform
in interface PAction
- Parameters:
target
- Target object manipulated by the action. Can be
null
. In this case stateless actions will do
nothing.data
- the matched string for the parser the action was linked to. If
this action was called upon a mismatch, this is the part
matched upto but excluding the point of failure.