| Modifier and Type | Field and Description |
|---|---|
| private List | annotations
Annotations on this JModule. |
| private final Set | directives
|
| private static final String | FILE_NAME
Java module file name. |
| private JDocComment | jdoc
javadoc comments for this JModule |
| private final String | name
Name of this module. |
| private final JCodeModel |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | JModule(final String
Java module name. Value can not be name, JCodeModel nullJCodeModel instance that owns this module.Creates an instance of Java module. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | _exports(final Collection<JPackage>
Collection of packages to be added. pkgs, final boolean Adds also packages without any classes when addEmpty)true.Adds packages to the list of Java module exports. |
| public void | |
| public void | |
| public void | |
| public void | |
| public JAnnotationUse | annotate(JClass clazz)
Implements com. Adds an annotation to this program element. |
| public JAnnotationUse | annotate(Class<? extends Annotation> clazz)
Implements com. Adds an annotation to this program element. |
| public <W extends JAnnotationWriter | annotate2(Class<W> clazz)
Implements com. Adds an annotation to this program element and returns a type-safe writer to fill in the values of such annotations. |
| public Collection | annotations()
Implements com. Read-only live view of all annotations on this |
| pack-priv void | |
| private JFormatter | Returns: New instance ofmodule-info.java source writer.Create |
| public void | generate(final JFormatter
Java code formatter. f)Implements com. Print source code of Java Module declaration. |
| pack-priv Set | |
| public JDocComment | Returns: JDocComment containing javadocs for this classImplements com. Creates, if necessary, and returns the class javadoc for this JModule |
| public String | |
| public boolean | removeAnnotation(JAnnotationUse annotation)
Implements com. Removes annotation from this program element. |
| annotations | back to summary |
|---|---|
| private List<JAnnotationUse> annotations Annotations on this JModule. Lazily created. | |
| directives | back to summary |
|---|---|
| private final Set<JModuleDirective> directives
| |
| FILE_NAME | back to summary |
|---|---|
| private static final String FILE_NAME Java module file name. | |
| jdoc | back to summary |
|---|---|
| private JDocComment jdoc javadoc comments for this JModule | |
| name | back to summary |
|---|---|
| private final String name Name of this module. Mandatory value. Shall not be | |
| owner | back to summary |
|---|---|
| private final JCodeModel owner | |
| JModule | back to summary |
|---|---|
| pack-priv JModule(final String name)
Deprecated for removal since 4.0.7. use two args constructor Creates an instance of Java module.
| |
| JModule | back to summary |
|---|---|
| pack-priv JModule(final String name, JCodeModel owner) Creates an instance of Java module.
| |
| _exports | back to summary |
|---|---|
| public void _exports(final JPackage pkg) Adds a package to the list of Java module exports.
The package name shall not be
| |
| _exports | back to summary |
|---|---|
| public void _exports(final Collection<JPackage> pkgs, final boolean addEmpty) Adds packages to the list of Java module exports.
| |
| _requires | back to summary |
|---|---|
| public void _requires(final String name, final boolean isPublic, final boolean isStatic) Adds a module to the list of Java module requirements.
The module name shall not be
| |
| _requires | back to summary |
|---|---|
| public void _requires(final String name) Adds a module to the list of Java module requirements without
| |
| _requires | back to summary |
|---|---|
| public void _requires(final boolean isPublic, final boolean isStatic, final String... names) Adds all modules to the list of Java module requirements.
The module name shall not be
| |
| _requires | back to summary |
|---|---|
| public void _requires(final String... names) Adds all modules to the list of Java module requirements without
| |
| annotate | back to summary |
|---|---|
| public JAnnotationUse annotate(JClass clazz) Implements com. Doc from com. Adds an annotation to this program element.
| |
| annotate | back to summary |
|---|---|
| public JAnnotationUse annotate(Class<? extends Annotation> clazz) Implements com. Doc from com. Adds an annotation to this program element.
| |
| annotate2 | back to summary |
|---|---|
| public <W extends JAnnotationWriter Implements com. Doc from com. Adds an annotation to this program element and returns a type-safe writer to fill in the values of such annotations.
| |
| annotations | back to summary |
|---|---|
| public Collection Implements com. Doc from com. Read-only live view of all annotations on this
| |
| build | back to summary |
|---|---|
| pack-priv void build(final CodeWriter src) throws IOException Build
| |
| createModuleInfoSourceFileWriter | back to summary |
|---|---|
| private JFormatter createModuleInfoSourceFileWriter(final CodeWriter src) throws IOException Create
| |
| generate | back to summary |
|---|---|
| public void generate(final JFormatter f) Implements com. Print source code of Java Module declaration.
| |
| getDirectives | back to summary |
|---|---|
| pack-priv Set Gets module directives set. jUnit helper method.
| |
| javadoc | back to summary |
|---|---|
| public JDocComment javadoc() Implements com. Creates, if necessary, and returns the class javadoc for this JModule
| |
| name | back to summary |
|---|---|
| public String name() Gets the name of this module.
| |
| removeAnnotation | back to summary |
|---|---|
| public boolean removeAnnotation(JAnnotationUse annotation) Implements com. Doc from com. Removes annotation from this program element.
| |