Class SimpleNode

java.lang.Object
org.tweetyproject.lp.asp.parser.SimpleNode
All Implemented Interfaces:
Node
Direct Known Subclasses:
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

public class SimpleNode extends Object implements Node
  • Constructor Details

    • SimpleNode

      public SimpleNode(int i)
    • SimpleNode

      public SimpleNode(ASPParser p, int i)
  • Method Details

    • jjtOpen

      public void jjtOpen()
      Description copied from interface: Node
      This method is called after the node has been made the current node. It indicates that child nodes can now be added to it.
      Specified by:
      jjtOpen in interface Node
    • jjtClose

      public void jjtClose()
      Description copied from interface: Node
      This method is called after all the child nodes have been added.
      Specified by:
      jjtClose in interface Node
    • jjtSetParent

      public void jjtSetParent(Node n)
      Specified by:
      jjtSetParent in interface Node
    • jjtGetParent

      public Node jjtGetParent()
      Specified by:
      jjtGetParent in interface Node
    • jjtAddChild

      public void jjtAddChild(Node n, int i)
      Specified by:
      jjtAddChild in interface Node
    • jjtGetChild

      public Node jjtGetChild(int i)
      Specified by:
      jjtGetChild in interface Node
    • jjtGetNumChildren

      public int jjtGetNumChildren()
      Specified by:
      jjtGetNumChildren in interface Node
    • jjtSetValue

      public void jjtSetValue(Object value)
    • jjtGetValue

      public Object jjtGetValue()
    • jjtAccept

      public Object jjtAccept(ASPParserVisitor visitor, Object data)
      Specified by:
      jjtAccept in interface Node
      Parameters:
      visitor - parser visitor
      data - object
      Returns:
      a new object
    • childrenAccept

      public Object childrenAccept(ASPParserVisitor visitor, Object data)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(String prefix)
    • dump

      public void dump(String prefix)