Package org.tweetyproject.lp.asp.parser
Interface Node
- All Known Implementing Classes:
ASTAggregate
,ASTAggrElement
,ASTAggrElementList
,ASTAggrFunc
,ASTAnswerSet
,ASTAriTerm
,ASTArithop
,ASTBinop
,ASTBody
,ASTBodyList
,ASTBuiltInAtom
,ASTChoice
,ASTChoiceElement
,ASTChoiceElementList
,ASTClingoID
,ASTClingoMeta
,ASTDlvArithmeticID
,ASTDlvID
,ASTHead
,ASTHeadElementsList
,ASTID
,ASTLiteral
,ASTNAFLiteral
,ASTNAFLiteralList
,ASTNumber
,ASTOpt
,ASTOptElement
,ASTOptElementList
,ASTOptFunc
,ASTProgram
,ASTQuery
,ASTRule
,ASTRuleList
,ASTString
,ASTTerm
,ASTTermList
,ASTVar
,ASTWeight
,SimpleNode
public interface Node
-
Method Summary
Modifier and TypeMethodDescriptionjjtAccept
(ASPParserVisitor visitor, Object data) void
jjtAddChild
(Node n, int i) void
jjtClose()
This method is called after all the child nodes have been added.jjtGetChild
(int i) int
void
jjtOpen()
This method is called after the node has been made the current node.void
jjtSetParent
(Node n)
-
Method Details
-
jjtOpen
void jjtOpen()This method is called after the node has been made the current node. It indicates that child nodes can now be added to it. -
jjtClose
void jjtClose()This method is called after all the child nodes have been added. -
jjtSetParent
-
jjtGetParent
Node jjtGetParent() -
jjtAddChild
-
jjtGetChild
-
jjtGetNumChildren
int jjtGetNumChildren() -
jjtAccept
- Parameters:
visitor
- parser visitordata
- object- Returns:
- a new object
-