|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.parser4j.parser.service.MatchMgrInvoker
public final class MatchMgrInvoker
| Constructor Summary | |
|---|---|
MatchMgrInvoker(java.lang.String[] matchClassNameTable,
ParsingToStringUtil parsingToStringUtil,
boolean matchClassOptional,
boolean useMatchClass)
set match manager by identifier |
|
| Method Summary | |
|---|---|
void |
beginAlternativeVisit(IParseNode node,
int alternativeNumber)
|
boolean |
beginVisit(IParseNode node)
begin node visit |
void |
checkDataComputed(IParseSessionForMatchMgr parseSession,
IParseNode parseNode)
|
void |
computeParseNodeData(IParseSessionForMatchMgr parseSession,
IParseState parseState)
|
boolean |
confirmReduction(int matchedNonterminalIdentifier,
IParseNode[] parseNodes,
int[] notWhiteIndexes,
ParseSession parseSession)
|
void |
endAlternativeVisit(IParseNode node,
int alternativeNumber)
|
void |
endVisit(IParseNode node)
end node visit, not invoke if IParseNodeVisitor.beginVisit(IParseNode) returned
false |
IParseNodeData[] |
getDataByAlternative(IParseSessionForMatchMgr parseSession,
IParseNode parseNode)
|
IParseNodeData |
getUniqData(IParseSessionForMatchMgr parseSession,
IParseNode parseNode)
|
boolean |
immediateReduction(int nonterminalIdentifier)
|
boolean |
isPreserveParseNode()
|
void |
reduceAction(int matchedNonterminalIdentifier,
IMatchMgr matchMgr,
IParseNode fatherParseNode,
IParseNode[] parseNodes,
int[] notWhiteIndexes,
IParseSessionForMatchMgr parseSession)
for reduction action invoke match manager for matched non terminal |
void |
reduceAction(int matchedNonterminalIdentifier,
IParseNode fatherParseNode,
IParseNode[] parseNodes,
int[] notWhiteIndexes,
ParseSession parseSession)
|
void |
setPreserveParseNode(boolean preserveParseNode)
|
boolean |
visitFirstAlternativeOnly()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatchMgrInvoker(java.lang.String[] matchClassNameTable,
ParsingToStringUtil parsingToStringUtil,
boolean matchClassOptional,
boolean useMatchClass)
throws ParserException
matchClassNameTable - match management class name for non terminalparsingToStringUtil - useMatchClass - nonTerminalByIdentifierMap -
ParserException| Method Detail |
|---|
public void setPreserveParseNode(boolean preserveParseNode)
setPreserveParseNode in interface IMatchMgrInvokerpublic boolean isPreserveParseNode()
isPreserveParseNode in interface IMatchMgrInvoker
public boolean confirmReduction(int matchedNonterminalIdentifier,
IParseNode[] parseNodes,
int[] notWhiteIndexes,
ParseSession parseSession)
throws ParserException
confirmReduction in interface IMatchMgrInvokerParserExceptionpublic boolean immediateReduction(int nonterminalIdentifier)
immediateReduction in interface IMatchMgrInvoker
public void reduceAction(int matchedNonterminalIdentifier,
IParseNode fatherParseNode,
IParseNode[] parseNodes,
int[] notWhiteIndexes,
ParseSession parseSession)
throws ParserException
reduceAction in interface IMatchMgrInvokerParserException
public void reduceAction(int matchedNonterminalIdentifier,
IMatchMgr matchMgr,
IParseNode fatherParseNode,
IParseNode[] parseNodes,
int[] notWhiteIndexes,
IParseSessionForMatchMgr parseSession)
throws ParserException
matchedNonterminalIdentifier - matchMgr - fatherParseNode - parseNodes - parse nodes subject to reductionnotWhiteIndexes -
ParserException
public IParseNodeData getUniqData(IParseSessionForMatchMgr parseSession,
IParseNode parseNode)
throws ParserException
getUniqData in interface IParseNodeDataAccessParserException
public IParseNodeData[] getDataByAlternative(IParseSessionForMatchMgr parseSession,
IParseNode parseNode)
throws ParserException
getDataByAlternative in interface IParseNodeDataAccessParserException
public void computeParseNodeData(IParseSessionForMatchMgr parseSession,
IParseState parseState)
throws ParserException
computeParseNodeData in interface IMatchMgrInvokerParserException
public void checkDataComputed(IParseSessionForMatchMgr parseSession,
IParseNode parseNode)
throws ParserException
checkDataComputed in interface IMatchMgrInvokerParserException
public boolean beginVisit(IParseNode node)
throws ParserException
IParseNodeVisitor
beginVisit in interface IParseNodeVisitorParserException
public void endVisit(IParseNode node)
throws ParserException
IParseNodeVisitorIParseNodeVisitor.beginVisit(IParseNode) returned
false
endVisit in interface IParseNodeVisitorParserException
public void beginAlternativeVisit(IParseNode node,
int alternativeNumber)
beginAlternativeVisit in interface IParseNodeVisitor
public void endAlternativeVisit(IParseNode node,
int alternativeNumber)
endAlternativeVisit in interface IParseNodeVisitorpublic boolean visitFirstAlternativeOnly()
visitFirstAlternativeOnly in interface IParseNodeVisitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||