prolog.implementation
Class NodeStatement

java.lang.Object
  |
  +--prolog.implementation.Fact
        |
        +--prolog.implementation.AbstractStatement
              |
              +--prolog.implementation.NodeStatement
All Implemented Interfaces:
IFact, IStatement
Direct Known Subclasses:
AndStatement

public abstract class NodeStatement
extends AbstractStatement
implements IStatement

Title: NodeStatement

Descrpition: A class abstract base class prepresenting a statement with more than one child statements


Field Summary
protected  java.util.List childs
          stores the child statements
 
Fields inherited from class prolog.implementation.Fact
name, relation
 
Constructor Summary
NodeStatement(int name)
          constructor
 
Method Summary
 void addStatement(IStatement s)
          adds a child statement to this node
 void genXml(java.io.Writer out, ISymbolTable table)
          generates a xml representation of this statement
 
Methods inherited from class prolog.implementation.AbstractStatement
generateFact, generateRelation
 
Methods inherited from class prolog.implementation.Fact
addAttribute, getName, getRelation, toString, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 
Methods inherited from interface prolog.model.IStatement
query
 
Methods inherited from interface prolog.model.IFact
getName, getRelation, toString
 

Field Detail

childs

protected java.util.List childs
stores the child statements
Constructor Detail

NodeStatement

public NodeStatement(int name)
constructor
Parameters:
name -  
Method Detail

addStatement

public void addStatement(IStatement s)
adds a child statement to this node
Parameters:
s - is the statement to be added

genXml

public void genXml(java.io.Writer out,
                   ISymbolTable table)
            throws java.io.IOException
generates a xml representation of this statement
Specified by:
genXml in interface IFact
Overrides:
genXml in class Fact
Parameters:
out - is the writer where to append the xml
table - is the symboltable to decode symbols
Throws:
java.io.IOException -