public abstract class AbstractHtmlGenerator<Ctx extends HtmlGeneratorResult> extends Object implements CreatesContextObject<Ctx>
| Modifier and Type | Field and Description |
|---|---|
protected String |
clsName |
protected String |
documentType |
protected HtmlGeneratorContext |
htmlGen |
protected static String |
KEY_FROM |
protected SourceBuilder<com.google.gwt.dev.jjs.UnifyAstView> |
out |
protected boolean |
renderAllChildren |
protected String[] |
renderOrder |
| Constructor and Description |
|---|
AbstractHtmlGenerator(String clsName,
com.google.gwt.core.ext.typeinfo.JClassType templateType,
com.google.gwt.dev.jjs.UnifyAstView ast) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEl(String name,
El el) |
protected void |
addHtml(String name,
Html html,
IntTo<String> elOrder) |
void |
addImport(Import importType) |
protected void |
clear() |
protected ConvertsValue<String,String> |
createProvider(String key,
String accessor,
HtmlTemplate template) |
protected String |
escape(String text) |
protected String |
escape(String text,
String key,
String accessor) |
protected static <Ctx extends HtmlGeneratorResult> |
existingTypesUnchanged(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.dev.jjs.UnifyAstView ast,
Ctx result,
String verify) |
protected void |
fillMembers(com.google.gwt.core.ext.typeinfo.JClassType templateType,
IntTo<String> elOrder) |
protected static void |
fillStyles(Appendable immediateStyle,
Appendable sheetStyle,
Style... styles) |
protected static <Ctx> Ctx |
findExisting(com.google.gwt.dev.jjs.UnifyAstView ast,
CreatesContextObject<Ctx> creator,
String pkgName,
String name) |
Iterable<El> |
getElements(String key) |
protected com.google.gwt.core.ext.TreeLogger.Type |
getLogLevel() |
Iterable<HtmlTemplate> |
getTemplates(String key) |
protected void |
initialize() |
protected String |
replace$value(String text,
String key,
String accessor) |
protected static <Ctx extends HtmlGeneratorResult> |
saveGeneratedType(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.TreeLogger.Type logLevel,
Class<?> generatorClass,
com.google.gwt.dev.jjs.UnifyAstView ast,
SourceBuilder<?> out,
Ctx result,
String inputHash) |
protected static String |
toHash(com.google.gwt.dev.jjs.UnifyAstView ast,
String... types) |
protected String |
toSimpleName(com.google.gwt.core.ext.typeinfo.JMethod method) |
protected String |
toSimpleName(String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewContextprotected static final String KEY_FROM
protected String clsName
protected String documentType
protected final HtmlGeneratorContext htmlGen
protected final SourceBuilder<com.google.gwt.dev.jjs.UnifyAstView> out
protected boolean renderAllChildren
protected String[] renderOrder
public AbstractHtmlGenerator(String clsName, com.google.gwt.core.ext.typeinfo.JClassType templateType, com.google.gwt.dev.jjs.UnifyAstView ast)
protected static <Ctx extends HtmlGeneratorResult> Ctx existingTypesUnchanged(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.dev.jjs.UnifyAstView ast, Ctx result, String verify)
protected static String toHash(com.google.gwt.dev.jjs.UnifyAstView ast, String... types) throws com.google.gwt.core.ext.UnableToCompleteException
com.google.gwt.core.ext.UnableToCompleteExceptionpublic void addImport(Import importType)
protected void clear()
protected ConvertsValue<String,String> createProvider(String key, String accessor, HtmlTemplate template)
key - accessor - template - protected void fillMembers(com.google.gwt.core.ext.typeinfo.JClassType templateType,
IntTo<String> elOrder)
protected static void fillStyles(Appendable immediateStyle, Appendable sheetStyle, Style... styles) throws IOException
IOExceptionprotected static <Ctx> Ctx findExisting(com.google.gwt.dev.jjs.UnifyAstView ast, CreatesContextObject<Ctx> creator, String pkgName, String name)
protected com.google.gwt.core.ext.TreeLogger.Type getLogLevel()
public Iterable<HtmlTemplate> getTemplates(String key)
protected void initialize()
protected static <Ctx extends HtmlGeneratorResult> Ctx saveGeneratedType(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.TreeLogger.Type logLevel, Class<?> generatorClass, com.google.gwt.dev.jjs.UnifyAstView ast, SourceBuilder<?> out, Ctx result, String inputHash) throws com.google.gwt.core.ext.UnableToCompleteException
com.google.gwt.core.ext.UnableToCompleteExceptionprotected String toSimpleName(com.google.gwt.core.ext.typeinfo.JMethod method)
Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.