pobs
Interface PAction

All Known Implementing Classes:
PAppendString, PLog, PPrint, PSetString

public interface PAction

Interface which allows semantic actions to be linked to parsers.

In order to use actions in a thread-safe web of parsers they have to stateless. Theys should only manipulated the PTargetprovided.

Author:
Martijn W. van der Lee, Franz-Josef Elmer

Method Summary
 void perform(PTarget target, java.lang.String data)
          Insert the method's description here.
 

Method Detail

perform

public void perform(PTarget target,
                    java.lang.String data)
Insert the method's description here.

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.