Package org.tweetyproject.lp.asp.parser
Class ASTOptElementList
java.lang.Object
org.tweetyproject.lp.asp.parser.SimpleNode
org.tweetyproject.lp.asp.parser.ASTOptElementList
- All Implemented Interfaces:
Node
Represents a node in the abstract syntax tree (AST) for an optional element list in the ASP (Answer Set Programming) parser.
This class extends
SimpleNode and provides methods for accepting a visitor.-
Constructor Summary
ConstructorsConstructorDescriptionASTOptElementList(int id) Constructs a newASTOptElementListwith the specified node ID.ASTOptElementList(ASPParser p, int id) Constructs a newASTOptElementListwith the specified parser and node ID. -
Method Summary
Modifier and TypeMethodDescriptionjjtAccept(ASPParserVisitor visitor, Object data) Accepts a visitor and allows it to visit this node.Methods inherited from class org.tweetyproject.lp.asp.parser.SimpleNode
childrenAccept, dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toString
-
Constructor Details
-
ASTOptElementList
public ASTOptElementList(int id) Constructs a newASTOptElementListwith the specified node ID.- Parameters:
id- The node ID.
-
ASTOptElementList
Constructs a newASTOptElementListwith the specified parser and node ID.- Parameters:
p- The parser instance used to create this node.id- The node ID.
-
-
Method Details
-
jjtAccept
Accepts a visitor and allows it to visit this node.- Specified by:
jjtAcceptin interfaceNode- Overrides:
jjtAcceptin classSimpleNode- Parameters:
visitor- The visitor to accept.data- Optional data to pass to the visitor.- Returns:
- The result of the visitor's visit method.
-