|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.parser4j.parser.entity.ParseResult
public class ParseResult
parse result
Constructor Summary | |
---|---|
ParseResult(java.util.Map<java.lang.Integer,NonTerminal> nonTerminalByIdentifierMap)
set error state at creation |
Method Summary | |
---|---|
int |
getColumnNumber()
|
IParseNodeData[] |
getDataByAlternative()
|
java.util.List<IParseNodeInErrorStatus> |
getErrorStatusList()
|
java.util.Set<java.lang.String> |
getExpectedNonTerminal()
|
java.util.Set<TerminalCharRange> |
getExpectedTerminal()
|
java.lang.String |
getFileName()
|
int |
getLineNumber()
|
java.util.Map<java.lang.Integer,NonTerminal> |
getNonTerminalByIdentifierMap()
|
ParseStack[] |
getParseStacks()
|
int |
getReduceErrorColumnNumber()
|
int |
getReduceErrorLineNumber()
|
IParseNode |
getResultParseNode()
|
boolean[] |
getStringTokenRecognition()
|
ParseStack[] |
getTokenParseStacks()
|
boolean[] |
getTokenRecognition()
|
IParseNodeData |
getUniqData()
|
boolean |
isInError()
|
boolean |
isParseError()
|
boolean |
isPreserveParseNode()
|
boolean |
isReduceError()
|
void |
setInFileInformation(java.lang.String fileName,
int lineNumber,
int columnNumber)
set line number and column number in input text file for syntax error |
void |
setlastTerminalValueRead(int lastTerminalValueRead)
|
void |
setParseError(boolean parseError)
set syntax error state |
void |
setParseStacks(ParseStack[] parseStacks,
ParseStack[] tokenParseStacks,
boolean[] tokenRecognition,
boolean[] stringTokenRecognition)
|
void |
setPreserveParseNode(boolean preserveParseNode)
|
void |
setReduceErrorInfo(java.util.List<IParseNodeInErrorStatus> errorStatusList)
set the reduce error informations |
void |
setResultParseNode(IParseNode resultParseNode)
set the resulting parse tree root node |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParseResult(java.util.Map<java.lang.Integer,NonTerminal> nonTerminalByIdentifierMap)
nonTerminalByIdentifierMap
- Method Detail |
---|
public void setResultParseNode(IParseNode resultParseNode)
resultParseNode
- public void setlastTerminalValueRead(int lastTerminalValueRead)
lastTerminalValueRead
- the last terminal value read to setpublic void setInFileInformation(java.lang.String fileName, int lineNumber, int columnNumber)
fileName
- lineNumber
- line in file where is syntax errorcolumnNumber
- column in file where is syntax errorfileName
- file name where is syntax errorpublic void setParseError(boolean parseError)
parseError
- true if syntax parsing errorpublic void setReduceErrorInfo(java.util.List<IParseNodeInErrorStatus> errorStatusList)
errorStatusList
- the error status for error cause of reduce errorpublic boolean isInError()
public IParseNode getResultParseNode()
public IParseNodeData getUniqData() throws ParserException
ParserException
public IParseNodeData[] getDataByAlternative() throws ParserException
ParserException
public boolean isParseError()
public boolean isReduceError()
public java.lang.String getFileName()
public int getColumnNumber()
public int getLineNumber()
public java.util.Set<java.lang.String> getExpectedNonTerminal()
public java.util.Set<TerminalCharRange> getExpectedTerminal()
public java.util.List<IParseNodeInErrorStatus> getErrorStatusList()
public int getReduceErrorLineNumber()
public int getReduceErrorColumnNumber()
public void setParseStacks(ParseStack[] parseStacks, ParseStack[] tokenParseStacks, boolean[] tokenRecognition, boolean[] stringTokenRecognition)
public ParseStack[] getParseStacks()
public ParseStack[] getTokenParseStacks()
public boolean[] getTokenRecognition()
public boolean[] getStringTokenRecognition()
public java.util.Map<java.lang.Integer,NonTerminal> getNonTerminalByIdentifierMap()
public void setPreserveParseNode(boolean preserveParseNode)
public boolean isPreserveParseNode()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |