pobs
Interface PObject

All Known Implementing Classes:
PParser, PPointer

public interface PObject

Defines the method signature required to link Parser OBjectS together.

To make such a web of Parser OBjectS thread safe this interface should be implemented in such a way that it is guranteed that after invocation of process(PScanner, long, PContext)no instance field is modified directly or indirectly. Everthing what is needed to provide thread-safe processing should be delivered by the three arguments of the process method.

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

Method Summary
 PMatch process(PScanner input, long begin, PContext context)
          Processes the input from the specified begin offset using the specified context.
 

Method Detail

process

public PMatch process(PScanner input,
                      long begin,
                      PContext context)
Processes the input from the specified begin offset using the specified context.

Parameters:
input - a PScanner which contains the entire input sequence
begin - the index location into the input from where to start processing
context - the current processing context
Returns:
the processing result
See Also:
PMatch