public abstract class AbstractJSClassGenerator<M extends ClassModel> extends Generator<M>
env, incremental, kinds, name| Constructor and Description |
|---|
AbstractJSClassGenerator() |
| Modifier and Type | Method and Description |
|---|---|
Collection<Class<? extends Annotation>> |
annotations() |
protected String |
arVal() |
protected String |
basicVal() |
protected String |
convParam(M model,
MethodInfo method,
String argName,
boolean overloaded,
ParamInfo param) |
protected abstract String |
convReturn(M model,
MethodInfo method,
TypeInfo returnType,
String templ) |
protected void |
genConstant(M model,
ConstantInfo constant,
CodeWriter writer) |
protected void |
genDoc(M model,
CodeWriter writer) |
protected void |
genLicenses(PrintWriter writer) |
protected void |
genMethod(M model,
String methodName,
boolean genStatic,
Predicate<MethodInfo> methodFilter,
CodeWriter writer) |
protected abstract void |
genMethodAdapter(M model,
MethodInfo method,
CodeWriter writer) |
protected String |
getJSDocType(TypeInfo type)
Generate the JSDoc type of a type
|
protected String |
getModuleName(ClassTypeInfo type)
Generate the module name of a type
|
protected String |
renderLinkToHtml(Tag.Link link)
Render a tag link to an html link, this function is used as parameter of the
renderDocToHtml function when it needs to render tag links.
|
protected String |
unwrapToJava(MethodInfo method,
ParamInfo param,
TypeInfo unwrappedType,
String unwrappedName) |
public Collection<Class<? extends Annotation>> annotations()
annotations in class Generator<M extends ClassModel>protected String renderLinkToHtml(Tag.Link link)
protected String getModuleName(ClassTypeInfo type)
protected String convParam(M model, MethodInfo method, String argName, boolean overloaded, ParamInfo param)
protected abstract String convReturn(M model, MethodInfo method, TypeInfo returnType, String templ)
protected void genDoc(M model, CodeWriter writer)
protected String unwrapToJava(MethodInfo method, ParamInfo param, TypeInfo unwrappedType, String unwrappedName)
protected String arVal()
protected String basicVal()
protected void genConstant(M model, ConstantInfo constant, CodeWriter writer)
protected void genMethod(M model, String methodName, boolean genStatic, Predicate<MethodInfo> methodFilter, CodeWriter writer)
protected abstract void genMethodAdapter(M model, MethodInfo method, CodeWriter writer)
protected void genLicenses(PrintWriter writer)
Copyright © 2019 Eclipse. All rights reserved.