DefaultModelWriter
public interface ModelWriter
Modifier and Type | Method | Description |
---|---|---|
ModelWriter |
writeAnnotation(JavaAnnotation ann) |
Write the java annotation
A standard annotation writer should write:
the annotation signature
|
ModelWriter |
writeClass(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 methods
|
ModelWriter |
writeConstructor(JavaConstructor cns) |
Write the java constructor.
|
ModelWriter |
writeField(JavaField fld) |
Write the java field
A standard field writer should write:
the javadoc
the annotations
the field signature
|
ModelWriter |
writeInitializer(JavaInitializer init) |
Write the initializer.
|
ModelWriter |
writeMethod(JavaMethod mth) |
Write the java method
A standard method writer should write:
the javadoc
the annotations
the method signature, containing:
the parameters
|
ModelWriter |
writeModuleDescriptor(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 statements
|
ModelWriter |
writeModuleExports(JavaModuleDescriptor.JavaExports exports) |
Write the module descriptors exports
|
ModelWriter |
writeModuleOpens(JavaModuleDescriptor.JavaOpens opens) |
Write the module descriptors opens
|
ModelWriter |
writeModuleProvides(JavaModuleDescriptor.JavaProvides provides) |
Write the module descriptors provides
|
ModelWriter |
writeModuleRequires(JavaModuleDescriptor.JavaRequires requires) |
Write the module descriptors requires
|
ModelWriter |
writeModuleUses(JavaModuleDescriptor.JavaUses uses) |
Write the module descriptors uses
|
ModelWriter |
writePackage(JavaPackage pkg) |
Write the java package
A standard package writer should write:
the javadoc
the annotations
the package signature
|
ModelWriter |
writeParameter(JavaParameter prm) |
Write the java parameter
A standard parameter writer should write:
the javadoc
the annotations
the parameter signature
|
ModelWriter |
writeSource(JavaSource src) |
Write the complete source file
A standard source writer should write:
the package
the imports
the classes
|
ModelWriter writeSource(JavaSource src)
src
- the sourceModelWriter writePackage(JavaPackage pkg)
pkg
- the packageModelWriter writeClass(JavaClass cls)
cls
- the classModelWriter writeField(JavaField fld)
fld
- the fieldModelWriter writeAnnotation(JavaAnnotation ann)
ann
- the annotationModelWriter writeMethod(JavaMethod mth)
mth
- the methodModelWriter writeParameter(JavaParameter prm)
prm
- the parameterModelWriter writeConstructor(JavaConstructor cns)
cns
- the constructorModelWriter writeInitializer(JavaInitializer init)
init
- the initializerModelWriter writeModuleDescriptor(JavaModuleDescriptor descriptor)
descriptor
- the module declarationModelWriter writeModuleExports(JavaModuleDescriptor.JavaExports exports)
exports
- the exports module statementModelWriter writeModuleOpens(JavaModuleDescriptor.JavaOpens opens)
opens
- the opens module statementModelWriter writeModuleProvides(JavaModuleDescriptor.JavaProvides provides)
provides
- the provides module statementModelWriter writeModuleRequires(JavaModuleDescriptor.JavaRequires requires)
requires
- the requires module statementModelWriter writeModuleUses(JavaModuleDescriptor.JavaUses uses)
uses
- the uses module statementCopyright © 2002–2018. All rights reserved.