Constructor and Description |
---|
ClassModel(ProcessingEnvironment env,
TypeMirrorFactory typeFactory,
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
public static final String ITERABLE
public static final String ITERATOR
public static final String FUNCTION
protected final ProcessingEnvironment env
protected final AnnotationValueInfoFactory annotationValueInfoFactory
protected final Messager messager
protected final TypeMirrorFactory typeFactory
protected final Doc.Factory docFactory
protected final TypeElement modelElt
protected final Elements elementUtils
protected final Types typeUtils
protected boolean processed
protected LinkedHashMap<ExecutableElement,MethodInfo> methods
protected LinkedHashMap<ExecutableElement,MethodInfo> anyJavaTypeMethods
protected Set<MethodInfo> futureMethods
protected List<ConstantInfo> constants
protected Set<ClassTypeInfo> collectedTypes
protected Set<ClassTypeInfo> importedTypes
protected Set<ApiTypeInfo> referencedTypes
protected Set<ClassTypeInfo> referencedDataObjectTypes
protected Set<EnumTypeInfo> referencedEnumTypes
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 handlerArg
protected TypeInfo readStreamArg
protected TypeInfo writeStreamArg
protected TypeInfo iterableArg
protected TypeInfo iteratorArg
protected TypeInfo[] functionArgs
protected Map<String,List<MethodInfo>> methodMap
protected Map<String,List<AnnotationValueInfo>> methodAnnotationsMap
protected List<AnnotationValueInfo> annotations
protected boolean deprecated
protected Text deprecatedDesc
public ClassModel(ProcessingEnvironment env, TypeMirrorFactory typeFactory, TypeElement modelElt)
public TypeElement getElement()
getElement
in interface Model
public List<MethodInfo> getMethods()
public List<MethodInfo> getAnyJavaTypeMethods()
public List<MethodInfo> getStaticMethods()
public List<MethodInfo> getInstanceMethods()
public List<ConstantInfo> getConstants()
public boolean isConcrete()
public Set<ClassTypeInfo> getImportedTypes()
public Set<ApiTypeInfo> getReferencedTypes()
public Set<ClassTypeInfo> getReferencedDataObjectTypes()
public Set<EnumTypeInfo> getReferencedEnumTypes()
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 Map<String,List<MethodInfo>> getMethodMap()
public List<TypeParamInfo.Class> getTypeParams()
public List<AnnotationValueInfo> getAnnotations()
getAnnotations
in interface Model
public Map<String,List<AnnotationValueInfo>> getMethodAnnotations()
protected void checkParamType(ExecutableElement elem, TypeInfo typeInfo, int pos, int numParams, boolean allowAnyJavaType)
protected void checkReturnType(ExecutableElement elem, TypeInfo type, boolean allowAnyJavaType)
protected MethodInfo createMethodInfo(Set<ClassTypeInfo> ownerTypes, String methodName, String comment, Doc doc, TypeInfo returnType, Text returnDescription, boolean isFluent, boolean isCacheReturn, List<ParamInfo> mParams, ExecutableElement methodElt, boolean isStatic, boolean isDefault, ArrayList<TypeParamInfo.Method> typeParams, TypeElement declaringElt, boolean methodDeprecated, Text methodDeprecatedDesc, boolean useFutures, boolean methodOverride)
protected void checkMethod(MethodInfo methodInfo)
public boolean isDeprecated()
true
if the class has a @Deprecated
annotationpublic Text getDeprecatedDesc()
public boolean isHandler()
public TypeInfo getHandlerArg()
public boolean isReadStream()
public TypeInfo getReadStreamArg()
public boolean isWriteStream()
public TypeInfo getWriteStreamArg()
public boolean isIterable()
public TypeInfo getIterableArg()
public boolean isIterator()
public TypeInfo getIteratorArg()
public boolean isFunction()
public TypeInfo[] getFunctionArgs()
Copyright © 2023 Eclipse. All rights reserved.