net.sf.parser4j.generator.service.match
Class MatchInclude

java.lang.Object
  extended by net.sf.parser4j.parser.service.match.AbstractMatchMgr
      extended by net.sf.parser4j.parser.service.match.AbstractMatchMgrAdapter
          extended by net.sf.parser4j.generator.service.match.MatchInclude
All Implemented Interfaces:
IMatchMgr

public class MatchInclude
extends AbstractMatchMgrAdapter

Author:
luc peuvrier

Field Summary
 
Fields inherited from class net.sf.parser4j.parser.service.match.AbstractMatchMgr
_log
 
Constructor Summary
MatchInclude(IParseNodeDataAccess parseNodeDataAccess)
           
 
Method Summary
 boolean immediateReduction()
           
 boolean needsToConfirmReduction()
           
 void reduceAction(IParseSessionForMatchMgr parseSession, IParseNode fatherParseNode, IParseNode[] parseNodes, int[] notWhiteIndexes)
          do the reduction action
 
Methods inherited from class net.sf.parser4j.parser.service.match.AbstractMatchMgrAdapter
confirmReduction
 
Methods inherited from class net.sf.parser4j.parser.service.match.AbstractMatchMgr
getDataByAlternative, getUniqData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchInclude

public MatchInclude(IParseNodeDataAccess parseNodeDataAccess)
Method Detail

needsToConfirmReduction

public boolean needsToConfirmReduction()
Specified by:
needsToConfirmReduction in interface IMatchMgr
Overrides:
needsToConfirmReduction in class AbstractMatchMgrAdapter
Returns:
true if confirm reduction must be invoked

immediateReduction

public boolean immediateReduction()
Specified by:
immediateReduction in interface IMatchMgr
Overrides:
immediateReduction in class AbstractMatchMgrAdapter
Returns:
true if must do immediate reduction

reduceAction

public void reduceAction(IParseSessionForMatchMgr parseSession,
                         IParseNode fatherParseNode,
                         IParseNode[] parseNodes,
                         int[] notWhiteIndexes)
                  throws ParserException
Description copied from interface: IMatchMgr
do the reduction action

Parameters:
parseSession - share with all match manager
fatherParseNode - the father parse node, reduction parse node result
parseNodes - the sons parse node
notWhiteIndexes - indexes of not white space parse node, can be empty if all parses nodes are whitespace
Throws:
ParserException


Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.