polyglot.visit
Class HeaderTranslator

java.lang.Object
  extended by polyglot.visit.PrettyPrinter
      extended by polyglot.visit.Translator
          extended by polyglot.visit.HeaderTranslator
All Implemented Interfaces:
java.lang.Cloneable, Copy

public class HeaderTranslator
extends Translator

A HeaderTranslator acts exactly like a Translator object, but translate() functions which are recipients of this object know that they're supposed to be generating a .h file instead of a .cpp file (this is only used for the c++ backend)

Author:
ak333

Field Summary
 
Fields inherited from class polyglot.visit.Translator
context, job, nf, outerClass, tf, ts
 
Fields inherited from class polyglot.visit.PrettyPrinter
appendSemicolon, printType
 
Constructor Summary
HeaderTranslator(Job job, TypeSystem ts, NodeFactory nf, TargetFactory tf)
           
HeaderTranslator(Translator t)
           
 
Method Summary
 
Methods inherited from class polyglot.visit.Translator
context, context, copy, cScope, exports, getFileNames, headerContext, job, macroEscape, nodeFactory, outerClass, print, setOuterClass, targetFactory, toString, translate, translateSource, typeSystem, writeFooter, writeHeader, writeHFileFooter, writeHFileHeader
 
Methods inherited from class polyglot.visit.PrettyPrinter
appendSemicolon, appendSemicolon, printAst, printType, printType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HeaderTranslator

public HeaderTranslator(Job job,
                        TypeSystem ts,
                        NodeFactory nf,
                        TargetFactory tf)

HeaderTranslator

public HeaderTranslator(Translator t)