Class CmsClassInitGenerator

java.lang.Object
com.google.gwt.core.ext.Generator
org.opencms.gwt.rebind.CmsClassInitGenerator

public class CmsClassInitGenerator extends com.google.gwt.core.ext.Generator
This generator class generates a class with a method which calls all static initClass() methods of classes that implement the I_CmsHasInit marker interface.

Since:
8.0.0
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.google.gwt.core.ext.Generator

    com.google.gwt.core.ext.Generator.RunsLocal
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    generate(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context, String typeName)
     
    void
    generateClass(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context, List<com.google.gwt.core.ext.typeinfo.JClassType> subclasses)
    This method generates the source code for the class initializer class.

    Methods inherited from class com.google.gwt.core.ext.Generator

    escape, escapeClassName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • generate

      public String generate(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context, String typeName) throws com.google.gwt.core.ext.UnableToCompleteException
      Specified by:
      generate in class com.google.gwt.core.ext.Generator
      Throws:
      com.google.gwt.core.ext.UnableToCompleteException
      See Also:
      • Generator.generate(com.google.gwt.core.ext.TreeLogger, com.google.gwt.core.ext.GeneratorContext, java.lang.String)
    • generateClass

      public void generateClass(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context, List<com.google.gwt.core.ext.typeinfo.JClassType> subclasses)
      This method generates the source code for the class initializer class.

      Parameters:
      logger - the logger to be used
      context - the generator context
      subclasses - the classes for which the generated code should the initClass() method