Class ASTOptElementList

java.lang.Object
org.tweetyproject.lp.asp.parser.SimpleNode
org.tweetyproject.lp.asp.parser.ASTOptElementList
All Implemented Interfaces:
Node

public class ASTOptElementList extends SimpleNode
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 Details

    • ASTOptElementList

      public ASTOptElementList(int id)
      Constructs a new ASTOptElementList with the specified node ID.
      Parameters:
      id - The node ID.
    • ASTOptElementList

      public ASTOptElementList(ASPParser p, int id)
      Constructs a new ASTOptElementList with the specified parser and node ID.
      Parameters:
      p - The parser instance used to create this node.
      id - The node ID.
  • Method Details

    • jjtAccept

      public Object jjtAccept(ASPParserVisitor visitor, Object data)
      Accepts a visitor and allows it to visit this node.
      Specified by:
      jjtAccept in interface Node
      Overrides:
      jjtAccept in class SimpleNode
      Parameters:
      visitor - The visitor to accept.
      data - Optional data to pass to the visitor.
      Returns:
      The result of the visitor's visit method.