public class ClassModel extends Object implements Model
Constructor and Description |
---|
ClassModel(MethodOverloadChecker methodOverloadChecker,
Messager messager,
Map<String,TypeElement> sources,
Elements elementUtils,
Types typeUtils,
TypeElement modelElt) |
public static final String VERTX_READ_STREAM
public static final String VERTX_WRITE_STREAM
public static final String VERTX_ASYNC_RESULT
public static final String VERTX_HANDLER
public static final String JSON_OBJECT
public static final String JSON_ARRAY
public static final String VERTX
protected final MethodOverloadChecker methodOverloadChecker
protected final Messager messager
protected final TypeInfo.Factory typeFactory
protected final Doc.Factory docFactory
protected final Map<String,TypeElement> sources
protected final TypeElement modelElt
protected final Elements elementUtils
protected final Types typeUtils
protected boolean processed
protected LinkedHashMap<ExecutableElement,MethodInfo> methods
protected Set<TypeInfo.Class> importedTypes
protected Set<TypeInfo.Class> referencedTypes
protected boolean concrete
protected TypeInfo type
protected String ifaceSimpleName
protected String ifaceFQCN
protected String ifacePackageName
protected String ifaceComment
protected Doc doc
protected TypeInfo handlerSuperType
protected Map<String,List<MethodInfo>> methodMap
protected List<TypeParamInfo.Class> typeParams
public ClassModel(MethodOverloadChecker methodOverloadChecker, Messager messager, Map<String,TypeElement> sources, Elements elementUtils, Types typeUtils, TypeElement modelElt)
public TypeElement getElement()
getElement
in interface Model
public List<MethodInfo> getMethods()
public List<MethodInfo> getStaticMethods()
public List<MethodInfo> getInstanceMethods()
public Set<TypeInfo.Class> getImportedTypes()
public boolean isConcrete()
public Set<TypeInfo.Class> getReferencedTypes()
public String getIfaceSimpleName()
public String getIfaceFQCN()
public String getIfacePackageName()
public String getIfaceComment()
public Doc getDoc()
public TypeInfo getType()
public ModuleInfo getModule()
public TypeInfo getHandlerSuperType()
public Map<String,List<MethodInfo>> getMethodMap()
public List<TypeParamInfo.Class> getTypeParams()
protected void checkParamType(Element elem, TypeMirror type, TypeInfo typeInfo, int pos, int numParams)
protected void checkReturnType(ExecutableElement elem, TypeInfo type)
protected boolean isDataObjectTypeWithToJson(TypeInfo type)
protected boolean isLegalListSetMapParam(TypeInfo type)
protected boolean isLegalListSetMapReturn(TypeInfo type)
protected MethodInfo createMethodInfo(TypeInfo.Class ownerType, String methodName, String comment, Doc doc, MethodKind kind, TypeInfo returnType, Text returnDescription, boolean isFluent, boolean isCacheReturn, List<ParamInfo> mParams, ExecutableElement methodElt, boolean isStatic, ArrayList<TypeParamInfo.Method> typeParams, TypeElement declaringElt)
protected void checkMethod(MethodInfo methodInfo)
Copyright © 2015. All Rights Reserved.