public interface ModelWriter
Modifier and Type | Method and 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 |
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 initializerCopyright © 2002–2016. All rights reserved.