public abstract class AbstractGen extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HashSet<String> |
clazzSet |
protected org.nustaq.serialization.FSTConfiguration |
conf |
protected HashMap<Class,List<MsgInfo>> |
infoMap |
| Constructor and Description |
|---|
AbstractGen() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addClz(Set<String> clazzSet,
Class aClass,
HashMap<Class,List<MsgInfo>> infoMap) |
void |
addTopLevelClass(String clazzName) |
protected abstract void |
genClzList(String outFile,
ArrayList<String> finallist,
GenContext ctx,
HashMap<Class,List<MsgInfo>> infoMap,
String templateFile) |
protected void |
generate(String outFile) |
abstract String |
getTemplateFileOrClazz() |
public void addTopLevelClass(String clazzName) throws ClassNotFoundException, IllegalAccessException, InstantiationException
protected void addClz(Set<String> clazzSet, Class aClass, HashMap<Class,List<MsgInfo>> infoMap)
protected abstract void genClzList(String outFile, ArrayList<String> finallist, GenContext ctx, HashMap<Class,List<MsgInfo>> infoMap, String templateFile) throws Exception
Exceptionpublic abstract String getTemplateFileOrClazz()
Copyright © 2018. All rights reserved.