Package net.sf.tweety.lp.asp.parser
Class SimpleNode
- java.lang.Object
-
- net.sf.tweety.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
,ASTClingoMeta
,ASTHead
,ASTHeadElementsList
,ASTID
,ASTLiteral
,ASTNAFLiteral
,ASTNAFLiteralList
,ASTNumber
,ASTOpt
,ASTOptElement
,ASTOptElementList
,ASTOptFunc
,ASTProgram
,ASTQuery
,ASTRule
,ASTRuleList
,ASTString
,ASTTerm
,ASTTermList
,ASTVar
,ASTWeight
public class SimpleNode extends java.lang.Object implements Node
-
-
Constructor Summary
Constructors Constructor Description SimpleNode(int i)
SimpleNode(ASPCore2Parser p, int i)
-
Method Summary
Modifier and Type Method Description java.lang.Object
childrenAccept(ASPCore2ParserVisitor visitor, java.lang.Object data)
void
dump(java.lang.String prefix)
java.lang.Object
jjtAccept(ASPCore2ParserVisitor visitor, java.lang.Object data)
void
jjtAddChild(Node n, int i)
void
jjtClose()
This method is called after all the child nodes have been added.Node
jjtGetChild(int i)
int
jjtGetNumChildren()
Node
jjtGetParent()
java.lang.Object
jjtGetValue()
void
jjtOpen()
This method is called after the node has been made the current node.void
jjtSetParent(Node n)
void
jjtSetValue(java.lang.Object value)
java.lang.String
toString()
java.lang.String
toString(java.lang.String prefix)
-
-
-
Constructor Detail
-
SimpleNode
public SimpleNode(int i)
-
SimpleNode
public SimpleNode(ASPCore2Parser p, int i)
-
-
Method Detail
-
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.
-
jjtClose
public void jjtClose()
Description copied from interface:Node
This method is called after all the child nodes have been added.
-
jjtSetParent
public void jjtSetParent(Node n)
- Specified by:
jjtSetParent
in interfaceNode
-
jjtGetParent
public Node jjtGetParent()
- Specified by:
jjtGetParent
in interfaceNode
-
jjtAddChild
public void jjtAddChild(Node n, int i)
- Specified by:
jjtAddChild
in interfaceNode
-
jjtGetChild
public Node jjtGetChild(int i)
- Specified by:
jjtGetChild
in interfaceNode
-
jjtGetNumChildren
public int jjtGetNumChildren()
- Specified by:
jjtGetNumChildren
in interfaceNode
-
jjtSetValue
public void jjtSetValue(java.lang.Object value)
-
jjtGetValue
public java.lang.Object jjtGetValue()
-
jjtAccept
public java.lang.Object jjtAccept(ASPCore2ParserVisitor visitor, java.lang.Object data)
-
childrenAccept
public java.lang.Object childrenAccept(ASPCore2ParserVisitor visitor, java.lang.Object data)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String prefix)
-
dump
public void dump(java.lang.String prefix)
-
-