pobs.action
Class PPrint

java.lang.Object
  extended bypobs.action.PPrint
All Implemented Interfaces:
PAction

public class PPrint
extends java.lang.Object
implements PAction

Outputs the parsed data which caused the triggering of this action to stdout.

Author:
Martijn W. van der Lee

Constructor Summary
PPrint()
          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
 

Constructor Detail

PPrint

public PPrint()
Sole constructor.

Method Detail

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.