org.jactr.tools.analysis.production.endstates.impl
Class RemovalEndStateComputer
java.lang.Object
org.jactr.tools.analysis.production.endstates.impl.RemovalEndStateComputer
- All Implemented Interfaces:
- IBufferEndStateComputer
public class RemovalEndStateComputer
- extends java.lang.Object
- implements IBufferEndStateComputer
creates an end state for productions that have an explicit remove, OR a match
but no modify. The end state returned is a query end state
- Author:
- harrison
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemovalEndStateComputer
public RemovalEndStateComputer()
computePossibleEndStatesFor
public java.util.Collection<BufferEndState> computePossibleEndStatesFor(BufferEndStates endStates,
java.lang.String bufferName,
SequenceAnalyzer analyzer)
- Description copied from interface:
IBufferEndStateComputer
- return a collection of all the possible buffer end states for a given production and buffer. The production sequence analyzer
will handle the adding of the end states to the buffer end states structure. It should NOT be done
by the computer.
- Specified by:
computePossibleEndStatesFor in interface IBufferEndStateComputer
- Parameters:
endStates - contains the production ast, as well as cached maps of the actions and conditions
- Returns: