Package org.opencms.gwt.rebind
Class CmsClassInitGenerator
java.lang.Object
com.google.gwt.core.ext.Generator
org.opencms.gwt.rebind.CmsClassInitGenerator
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
-
Method Summary
Modifier and TypeMethodDescriptiongenerate
(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
-
Constructor Details
-
CmsClassInitGenerator
public CmsClassInitGenerator()
-
-
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 classcom.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 usedcontext
- the generator contextsubclasses
- the classes for which the generated code should the initClass() method
-