Class CodeGenerator


  • public class CodeGenerator
    extends java.lang.Object
    CodeGenerator generates codes from a parse tree, sending it to the specified CodeConsumer.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CodeGenerator.Context
      Information on the current context.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void add​(Node n)  
      protected void add​(Node node, CodeGenerator.Context context)  
      protected void add​(java.lang.String str)  
      void tagAsStrict()
      Insert a ECMASCRIPT 5 strict annotation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • tagAsStrict

        public void tagAsStrict()
        Insert a ECMASCRIPT 5 strict annotation.
      • add

        protected void add​(java.lang.String str)
      • add

        protected void add​(Node n)