|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IParseNode
all parse node interface
Method Summary | |
---|---|
void |
accept(IParseNodeVisitor visitor)
to visit this parse node |
void |
addErrorStatus(IParseNode[] sonParseNodes)
|
void |
addErrorStatus(IParseNodeInErrorStatus status)
add error status |
void |
assertSonReferenced()
|
IParseNode[] |
getAlternativeParseNodeArray()
|
int |
getBeginColumnNumber()
|
int |
getBeginLineNumber()
|
IParseNodeData[] |
getDataByAlternative()
|
int |
getEndColumnNumber()
|
int |
getEndLineNumber()
|
java.util.List<IParseNodeInErrorStatus> |
getErrorStatusList()
|
java.lang.String |
getFileName()
|
int |
getGrammarSymbolIdentifier()
|
int |
getMyIdentifier()
|
java.lang.String |
getName()
|
int[] |
getNotWhiteIndexes()
|
int |
getNumberOfAlternative()
|
EnumNodeType |
getParseNodeType()
|
int |
getParseStackId()
|
IParseNode[] |
getSonParseNodes()
|
SyntaxNode |
getSyntaxNode()
|
IParseNodeData |
getUniqData()
|
boolean |
hasDataComputed()
|
boolean |
isInError()
|
boolean |
isIntermediate()
|
boolean |
isNonTerminal()
|
boolean |
isTerminal()
|
boolean |
isWhiteSpace()
|
boolean |
setAlternativeParseNode(IParseNode alternativeParseNode,
int maxNumberOfAlternative)
set alternative parse node, special case for terminal ( see implementation ) |
void |
setData()
|
void |
setData(IParseNodeData data)
|
void |
setInTextInformation(java.lang.String fileName,
int beginLineNumber,
int beginColumnNumber,
int endLineNumber,
int endColumnNumber)
set source file name and begin/end line/column number |
void |
setMatchIdentifier(java.lang.String matchIdentifier)
|
void |
setWhiteSpace(boolean whiteSpace)
|
java.lang.String |
toString(boolean visitAgainEnabled)
|
void |
unreferenceSon()
make this parse not no more reference its son |
Method Detail |
---|
int getParseStackId()
int getMyIdentifier()
EnumNodeType getParseNodeType()
void setInTextInformation(java.lang.String fileName, int beginLineNumber, int beginColumnNumber, int endLineNumber, int endColumnNumber)
fileName
- beginLineNumber
- beginColumnNumber
- endLineNumber
- endColumnNumber
- java.lang.String getFileName()
int getBeginLineNumber()
int getEndLineNumber()
int getBeginColumnNumber()
int getEndColumnNumber()
int getNumberOfAlternative()
int getGrammarSymbolIdentifier()
java.lang.String getName()
boolean isIntermediate()
boolean isInError()
java.util.List<IParseNodeInErrorStatus> getErrorStatusList()
void addErrorStatus(IParseNodeInErrorStatus status)
status
- the error statusvoid addErrorStatus(IParseNode[] sonParseNodes)
parseNodes
- boolean isNonTerminal()
boolean isTerminal()
void setWhiteSpace(boolean whiteSpace)
whiteSpace
- true if the matched non terminal of this parse node is a white
spaceboolean isWhiteSpace()
boolean setAlternativeParseNode(IParseNode alternativeParseNode, int maxNumberOfAlternative) throws ParserException, TooMuchAlternativeParserException
alternativeParseNode
- maxNumberOfAlternative
-
ParserException
TooMuchAlternativeParserException
boolean hasDataComputed()
void setData(IParseNodeData data) throws ParserException
data
- data associated to this parse node first alternative
ParserException
void setData() throws ParserException
ParserException
IParseNodeData getUniqData() throws ParserException
ParserException
IParseNodeData[] getDataByAlternative() throws ParserException
ParserException
IParseNode[] getAlternativeParseNodeArray()
IParseNode[] getSonParseNodes()
void accept(IParseNodeVisitor visitor) throws ParserException
visitor
- the parse node visitor
ParserException
void unreferenceSon() throws ParserException
ParserException
void assertSonReferenced() throws ParserException
ParserException
int[] getNotWhiteIndexes()
java.lang.String toString(boolean visitAgainEnabled)
void setMatchIdentifier(java.lang.String matchIdentifier)
SyntaxNode getSyntaxNode() throws ParserException
ParserException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |