Constructor and Description |
---|
ClassModel(ProcessingEnvironment env,
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 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 List<ConstantInfo> constants
protected Set<ClassTypeInfo> collectedTypes
protected Set<ClassTypeInfo> importedTypes
protected Set<ApiTypeInfo> referencedTypes
protected Set<DataObjectTypeInfo> 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 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, 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<DataObjectTypeInfo> 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 TypeInfo getHandlerType()
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, TypeMirror type, TypeInfo typeInfo, int pos, int numParams, boolean allowAnyJavaType)
protected void checkReturnType(ExecutableElement elem, TypeInfo type, TypeMirror typeMirror, boolean allowAnyJavaType)
protected void checkConstantType(VariableElement elem, TypeInfo type, TypeMirror typeMirror, boolean allowAnyJavaType)
protected boolean isLegalDataObjectTypeReturn(TypeInfo type)
protected boolean isLegalContainerParam(TypeInfo type, boolean allowAnyJavaType)
protected boolean isLegalContainerReturn(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)
protected void checkMethod(MethodInfo methodInfo)
public boolean isDeprecated()
true
if the class has a @Deprecated
annotationpublic Text getDeprecatedDesc()
Copyright © 2019 Eclipse. All rights reserved.