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 TypeMirrorFactory 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<ClassTypeInfo> collectedTypes
protected Set<ClassTypeInfo> importedTypes
protected Set<ApiTypeInfo> referencedTypes
protected Set<ClassTypeInfo> referencedDataObjectTypes
protected boolean concrete
protected ClassTypeInfo type
protected String ifaceSimpleName
protected String ifaceFQCN
protected String ifacePackageName
protected String ifaceComment
protected Doc doc
protected TypeInfo concreteSuperType
protected TypeInfo handlerSuperType
protected Map<String,List<MethodInfo>> methodMap
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 boolean isConcrete()
public Set<ClassTypeInfo> getImportedTypes()
public Set<ApiTypeInfo> getReferencedTypes()
public Set<ClassTypeInfo> getReferencedDataObjectTypes()
public String getIfaceSimpleName()
public String getIfaceFQCN()
public String getIfacePackageName()
public String getIfaceComment()
public Doc getDoc()
public ClassTypeInfo getType()
public ModuleInfo getModule()
public TypeInfo getConcreteSuperType()
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, TypeMirror typeMirror)
protected boolean isLegalDataObjectTypeReturn(TypeInfo type)
protected boolean isLegalListSetMapParam(TypeInfo type)
protected boolean isLegalListSetMapReturn(TypeInfo type)
protected MethodInfo createMethodInfo(Set<ClassTypeInfo> ownerTypes, String methodName, String comment, Doc doc, MethodKind kind, TypeInfo returnType, Text returnDescription, boolean isFluent, boolean isCacheReturn, List<ParamInfo> mParams, ExecutableElement methodElt, boolean isStatic, boolean isDefault, ArrayList<TypeParamInfo.Method> typeParams, TypeElement declaringElt)
protected void checkMethod(MethodInfo methodInfo)
Copyright © 2016. All rights reserved.