cb.parser
Class PrintVisitor

java.lang.Object
  |
  +--cb.petal.DescendingVisitor
        |
        +--cb.parser.PrintVisitor
All Implemented Interfaces:
Visitor
Direct Known Subclasses:
MyPrintVisitor

public class PrintVisitor
extends DescendingVisitor

Print petal file exactly like Rose would with some limitations concerning indendattion, i.e., if you don't mind white space, input and output files are identical.

Version:
$Id: PrintVisitor.java,v 1.18 2001/11/01 15:56:49 dahm Exp $
Author:
M. Dahm

Constructor Summary
PrintVisitor(java.io.PrintStream out)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void visit(BooleanLiteral obj)
           
 void visit(FloatLiteral obj)
           
 void visit(IntegerLiteral obj)
           
 void visit(List list)
           
 void visit(Location loc)
           
 void visit(PetalFile obj)
           
 void visit(StringLiteral obj)
           
 void visit(Tag ref)
           
 void visit(Tuple tuple)
           
 void visit(Value value)
           
 void visitObject(PetalObject obj)
           
 
Methods inherited from class cb.petal.DescendingVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintVisitor

public PrintVisitor(java.io.PrintStream out)
Method Detail

visit

public void visit(PetalFile obj)
Overrides:
visit in class DescendingVisitor

visitObject

public void visitObject(PetalObject obj)
Overrides:
visitObject in class DescendingVisitor

visit

public void visit(StringLiteral obj)
Overrides:
visit in class DescendingVisitor

visit

public void visit(BooleanLiteral obj)
Overrides:
visit in class DescendingVisitor

visit

public void visit(FloatLiteral obj)
Overrides:
visit in class DescendingVisitor

visit

public void visit(IntegerLiteral obj)
Overrides:
visit in class DescendingVisitor

visit

public void visit(Tag ref)
Overrides:
visit in class DescendingVisitor

visit

public void visit(Location loc)
Overrides:
visit in class DescendingVisitor

visit

public void visit(List list)
Overrides:
visit in class DescendingVisitor

visit

public void visit(Value value)
Overrides:
visit in class DescendingVisitor

visit

public void visit(Tuple tuple)
Overrides:
visit in class DescendingVisitor

main

public static void main(java.lang.String[] args)