Semant
Class Type.Print

java.lang.Object
  extended by Semant.Type.Print
All Implemented Interfaces:
Type.Visitor
Enclosing class:
Type

public static class Type.Print
extends java.lang.Object
implements Type.Visitor

A visitor to print types.


Constructor Summary
Type.Print(java.io.PrintWriter o)
           
 
Method Summary
 void visit(Type.ARRAY n)
           
 void visit(Type.CLASS n)
           
 void visit(Type.FUN n)
           
 void visit(Type.INSTANCE n)
           
 void visit(Semant.Type.Primitive n)
           
<T extends Type>
void
visit(Type.RECORD<T> n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Type.Print

public Type.Print(java.io.PrintWriter o)
Method Detail

visit

public void visit(Type.ARRAY n)
Specified by:
visit in interface Type.Visitor

visit

public void visit(Semant.Type.Primitive n)
Specified by:
visit in interface Type.Visitor

visit

public void visit(Type.CLASS n)
Specified by:
visit in interface Type.Visitor

visit

public void visit(Type.FUN n)
Specified by:
visit in interface Type.Visitor

visit

public void visit(Type.INSTANCE n)
Specified by:
visit in interface Type.Visitor

visit

public <T extends Type> void visit(Type.RECORD<T> n)
Specified by:
visit in interface Type.Visitor