pobs
Interface PAction
- All Known Implementing Classes:
- PLog, PPrint
- 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 be
stateless. They should only manipulate the PTarget
provided.
- Author:
- Martijn W. van der Lee, Franz-Josef Elmer
Method Summary |
void |
perform(PTarget target,
java.lang.String data)
Performs an action on the specified target using the specified data. |
perform
public void perform(PTarget target,
java.lang.String data)
- Performs an action on the specified target using the specified data.
- 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.