net.sf.parser4j.parser.service.match
Class AbstractMatchMgrAdapter

java.lang.Object
  extended by net.sf.parser4j.parser.service.match.AbstractMatchMgr
      extended by net.sf.parser4j.parser.service.match.AbstractMatchMgrAdapter
All Implemented Interfaces:
IMatchMgr
Direct Known Subclasses:
MatchAlternative, MatchAltStmList, MatchAltStmListElt1, MatchAltStmListElt2, MatchCariageReturn, MatchCatStmList, MatchChar, MatchCharClass, MatchCharClassList, MatchCharFromEscape, MatchCharFromHexa, MatchCharFromUnicode, MatchCharRange, MatchCharValue, MatchDefaultEquMatch, MatchEmptyAltStmStElt, MatchEqu, MatchGrammar, MatchGrammarSymbolId, MatchGrammarSymbolString, MatchId, MatchIdAfterFirst, MatchInClassListChar, MatchInclude, MatchMClass, MatchMClassId, MatchNewLine, MatchNoTokenRulesGroup, MatchPrimaryStmGroup, MatchRule, MatchRules, MatchRulesCat, MatchRulesGroupList, MatchRulesGroupListCat, MatchRuleStm1, MatchRuleStm2, MatchRuleStmSt1, MatchRuleStmSt2, MatchString, MatchStringTokenRule, MatchStrList, MatchStrListChar, MatchTab, MatchTerminalChar, MatchTokenRule, MatchTokenRulesGroup

public abstract class AbstractMatchMgrAdapter
extends AbstractMatchMgr

always confirm reduction

Author:
luc peuvrier

Field Summary
 
Fields inherited from class net.sf.parser4j.parser.service.match.AbstractMatchMgr
_log
 
Constructor Summary
AbstractMatchMgrAdapter(IParseNodeDataAccess parseNodeDataAccess)
           
 
Method Summary
 boolean confirmReduction(IParseSessionForMatchMgr parseSession, IParseNode[] parseNodes, int[] notWhiteIndexes)
          confirm or cancel reduction
 boolean immediateReduction()
           
 boolean needsToConfirmReduction()
           
 
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
 
Methods inherited from interface net.sf.parser4j.parser.service.match.IMatchMgr
reduceAction
 

Constructor Detail

AbstractMatchMgrAdapter

public AbstractMatchMgrAdapter(IParseNodeDataAccess parseNodeDataAccess)
Method Detail

needsToConfirmReduction

public boolean needsToConfirmReduction()
Returns:
true if confirm reduction must be invoked

confirmReduction

public boolean confirmReduction(IParseSessionForMatchMgr parseSession,
                                IParseNode[] parseNodes,
                                int[] notWhiteIndexes)
Description copied from interface: IMatchMgr
confirm or cancel reduction

Parameters:
parseSession - share with all match manager
parseNodes - the sons parse node
notWhiteIndexes - indexes of not white space parse node
Returns:
true if confirm reduction, else false to cancel reduction

immediateReduction

public boolean immediateReduction()
Returns:
true if must do immediate reduction


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