java.lang.Object
com.thoughtworks.qdox.writer.impl.DefaultModelWriter
- 所有已实现的接口:
ModelWriter
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidcommentHeader(JavaAnnotatedElement entity) protected final IndentBufferAll information is written to this buffer.toString()writeAnnotation(JavaAnnotation annotation) Write the java annotation A standard annotation writer should write: the annotation signaturewriteClass(JavaClass cls) Write the java class A standard class writer should write: the javadoc the annotations the class signature, containing: the fields the constructors the methodswriteConstructor(JavaConstructor constructor) Write the java constructor.writeField(JavaField field) Write the java field A standard field writer should write: the javadoc the annotations the field signatureWrite the initializer.writeMethod(JavaMethod method) Write the java method A standard method writer should write: the javadoc the annotations the method signature, containing: the parameterswriteModuleDescriptor(JavaModuleDescriptor descriptor) Write the module descriptor A standard module descriptor writer should write: the javadoc the annotations the module signature, containing: the requires statements the exports statements the opens statements the uses statements the provides statementsWrite the module descriptors exportsWrite the module descriptors opensWrite the module descriptors providesWrite the module descriptors requiresWrite the module descriptors useswritePackage(JavaPackage pckg) Write the java package A standard package writer should write: the javadoc the annotations the package signaturewriteParameter(JavaParameter parameter) Write the java parameter A standard parameter writer should write: the javadoc the annotations the parameter signaturewriteSource(JavaSource source) Write the complete source file A standard source writer should write: the package the imports the classes
-
构造器详细资料
-
DefaultModelWriter
public DefaultModelWriter()
-
-
方法详细资料
-
getBuffer
All information is written to this buffer. When extending this class you should write to this buffer- 返回:
- the buffer
-
writeSource
Write the complete source file A standard source writer should write:- the package
- the imports
- the classes
- 指定者:
writeSource在接口中ModelWriter- 参数:
source- the source- 返回:
- itself
-
writePackage
Write the java package A standard package writer should write:- the javadoc
- the annotations
- the package signature
- 指定者:
writePackage在接口中ModelWriter- 参数:
pckg- the package- 返回:
- itself
-
writeClass
Write the java class A standard class writer should write:- the javadoc
- the annotations
- the class signature, containing:
- the fields
- the constructors
- the methods
- 指定者:
writeClass在接口中ModelWriter- 参数:
cls- the class- 返回:
- itself
-
writeInitializer
Write the initializer.- 指定者:
writeInitializer在接口中ModelWriter- 参数:
init- the initializer- 返回:
- itself
-
writeField
Write the java field A standard field writer should write:- the javadoc
- the annotations
- the field signature
- 指定者:
writeField在接口中ModelWriter- 参数:
field- the field- 返回:
- itself
-
writeConstructor
Write the java constructor. A standard constructor writer should write:- the javadoc
- the annotations
- the constructor signature, containing:
- the parameters
- 指定者:
writeConstructor在接口中ModelWriter- 参数:
constructor- the constructor- 返回:
- itself
-
writeMethod
Write the java method A standard method writer should write:- the javadoc
- the annotations
- the method signature, containing:
- the parameters
- 指定者:
writeMethod在接口中ModelWriter- 参数:
method- the method- 返回:
- itself
-
writeAnnotation
Write the java annotation A standard annotation writer should write:- the annotation signature
- 指定者:
writeAnnotation在接口中ModelWriter- 参数:
annotation- the annotation- 返回:
- itself
-
writeParameter
Write the java parameter A standard parameter writer should write:- the javadoc
- the annotations
- the parameter signature
- 指定者:
writeParameter在接口中ModelWriter- 参数:
parameter- the parameter- 返回:
- itself
-
commentHeader
-
writeModuleDescriptor
Write the module descriptor A standard module descriptor writer should write:- the javadoc
- the annotations
- the module signature, containing:
- the requires statements
- the exports statements
- the opens statements
- the uses statements
- the provides statements
- 指定者:
writeModuleDescriptor在接口中ModelWriter- 参数:
descriptor- the module declaration- 返回:
- itself
-
writeModuleExports
Write the module descriptors exports- 指定者:
writeModuleExports在接口中ModelWriter- 参数:
exports- the exports module statement- 返回:
- itself
-
writeModuleOpens
Write the module descriptors opens- 指定者:
writeModuleOpens在接口中ModelWriter- 参数:
opens- the opens module statement- 返回:
- itself
-
writeModuleProvides
Write the module descriptors provides- 指定者:
writeModuleProvides在接口中ModelWriter- 参数:
provides- the provides module statement- 返回:
- itself
-
writeModuleRequires
Write the module descriptors requires- 指定者:
writeModuleRequires在接口中ModelWriter- 参数:
requires- the requires module statement- 返回:
- itself
-
writeModuleUses
Write the module descriptors uses- 指定者:
writeModuleUses在接口中ModelWriter- 参数:
uses- the uses module statement- 返回:
- itself
-
toString
-