Skip to content

Commit eafd960

Browse files
docs: prepare javadocs generation
1 parent 179a804 commit eafd960

11 files changed

Lines changed: 24 additions & 49 deletions

File tree

pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,25 @@
6666
</descriptorRefs>
6767
</configuration>
6868
</plugin>
69+
<plugin>
70+
<groupId>org.apache.maven.plugins</groupId>
71+
<artifactId>maven-javadoc-plugin</artifactId>
72+
<version>3.3.1</version>
73+
<executions>
74+
<execution>
75+
<id>generate-javadocs</id>
76+
<phase>package</phase>
77+
<goals>
78+
<goal>jar</goal>
79+
</goals>
80+
<configuration>
81+
<outputDirectory>docs</outputDirectory>
82+
<destDir>apidocs</destDir>
83+
<show>public protected</show>
84+
</configuration>
85+
</execution>
86+
</executions>
87+
</plugin>
6988
</plugins>
7089
</build>
7190

src/main/java/de/hub/mse/variantsync/boosting/ecco/ASTNode.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ public enum NODE_TYPE {
4040
/**
4141
* Constructs a new ASTNode with the specified parameters.
4242
*
43-
* @param parent The parent ASTNode of this node. Can be null if this node is
44-
* the root of the AST.
45-
* @param code The code snippet represented by this node.
46-
* @param position The position of the code snippet in the source file.
47-
* @param type The type of the code element represented by this node.
48-
* @param mapping The formula mapping associated with this node.
4943
*/
5044
public ASTNode(final ASTNode parent, final String code, final Position position, final NODE_TYPE type,
5145
final Formula mapping) {

src/main/java/de/hub/mse/variantsync/boosting/ecco/Association.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public int hashCode() {
8181
/**
8282
* Returns the set of AST nodes contained in this EccoSet.
8383
*
84-
* @return EccoSet<ASTNode> - a set of ASTNode objects representing the AST
84+
* @return a set of ASTNode objects representing the AST
8585
* nodes
8686
*/
8787
public EccoSet<ASTNode> getAstNodes() {
@@ -161,7 +161,7 @@ public EccoSet<Module> getNot() {
161161
/**
162162
* Returns a list of the smallest min modules.
163163
*
164-
* @return List<Module> The list of smallest min modules
164+
* @return The list of smallest min modules
165165
*/
166166
public List<Module> getSmallestMinModules() {
167167
return getSmallestModules(this.min);
@@ -170,7 +170,7 @@ public List<Module> getSmallestMinModules() {
170170
/**
171171
* Returns a list of the smallest max modules.
172172
*
173-
* @return List<Module> The list of smallest max modules
173+
* @return The list of smallest max modules
174174
*/
175175
public List<Module> getSmallestMaxModules() {
176176
return getSmallestModules(this.max);

src/main/java/de/hub/mse/variantsync/boosting/ecco/Feature.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
*
99
* This class implements the Comparable interface to allow for comparison of
1010
* Feature objects based on their names.
11-
*
12-
* @param name the name of the feature
1311
*/
1412
public class Feature implements Comparable<Feature>, Serializable {
1513

src/main/java/de/hub/mse/variantsync/boosting/parsing/AbstractAST.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
* with a root node and a set of AST nodes.
1818
* This class provides constructors to create an AST with optional filtering
1919
* based on file types.
20-
*
21-
* @param root the root node of the AST
22-
* @param astNodes the set of AST nodes in the tree
23-
* @param fileTypes a set of file types to filter the AST nodes by
2420
*/
2521
public abstract class AbstractAST implements Serializable {
2622
protected final ASTNode root;
@@ -73,7 +69,7 @@ public AbstractAST(final ASTNode root, final EccoSet<ASTNode> astNodes,
7369
* Collects all nodes (except the root node) of the Abstract Syntax Tree (AST)
7470
* in one set to simplify their access.
7571
*
76-
* @return EccoSet<ASTNode> - a set containing all nodes of the AST
72+
* @return a set containing all nodes of the AST
7773
*/
7874
public EccoSet<ASTNode> collectAstNodes() {
7975
final EccoSet<ASTNode> result = new EccoSet<>();
@@ -131,8 +127,6 @@ private void visitFile(final ASTNode parent, final File parentFile) {
131127
* @throws NullPointerException if either fileNode or fileToVisit is null.
132128
* @throws IllegalArgumentException if the fileToVisit does not exist or is not
133129
* a valid file.
134-
* @throws IOException if an I/O error occurs while reading the
135-
* file content.
136130
*/
137131
protected abstract void visitFileContent(final ASTNode fileNode, final File fileToVisit);
138132

src/main/java/de/hub/mse/variantsync/boosting/parsing/LineAST.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@
2020
* content of a file and create
2121
* AST nodes for each line in the file.
2222
*
23-
* The visitFileContent method is overridden to visit the content of a file and
24-
* create AST nodes for each line in the file.
25-
* Each line in the file is represented by an ASTNode with the NODE_TYPE set to
26-
* LINE.
27-
*
28-
* @param fileNode The ASTNode representing the file being visited.
29-
* @param fileToVisit The file to visit and create AST nodes for each line.
30-
* @throws UncheckedIOException If an IOException occurs while reading the file.
3123
*/
3224
public class LineAST extends AbstractAST {
3325
private static final int LINE_BASE_INDEX = 0;

src/main/java/de/hub/mse/variantsync/boosting/position/ProductPosition.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88

99
/**
1010
* Represents a mapping between a Product and a Position.
11-
*
12-
* @param product The Product object associated with this ProductPosition.
13-
* @param position The Position object associated with this ProductPosition.
1411
*/
1512
public class ProductPosition implements Serializable {
1613
public final Product product;

src/main/java/de/hub/mse/variantsync/boosting/product/Product.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public EccoSet<Feature> getFeatures() {
121121
/**
122122
* Returns the set of AST nodes in the main tree.
123123
*
124-
* @return EccoSet<ASTNode> - a set of AST nodes in the main tree
124+
* @return a set of AST nodes in the main tree
125125
*/
126126
public EccoSet<ASTNode> getAstNodesMainTree() {
127127
return astNodesMainTree;

src/main/java/de/hub/mse/variantsync/boosting/product/ProductInitializationTask.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@
2121
/**
2222
* A Callable task for initializing a product with the given parameters.
2323
*
24-
* @param productNumber The number of the product to initialize.
25-
* @param productName The name of the product to initialize.
26-
* @param configPath The path to the configuration file for the product.
27-
* @param sourcePath The path to the source files for the product.
28-
* @param allFeatures The set of all features implemented by the product.
29-
* @param usedLanguage The primary language used in the product.
30-
* @return An InitResult object representing the result of the initialization
31-
* task.
32-
* @throws Exception If an error occurs during the initialization process.
3324
*/
3425
public class ProductInitializationTask implements Callable<ProductInitializationTask.InitResult> {
3526
private final int productNumber;

src/main/java/de/hub/mse/variantsync/boosting/product/ProductLoadTask.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
* A Callable task that loads a product from a given file path.
1414
* The task reads the product object from the file using ObjectInputStream and
1515
* returns a LoadResult object.
16-
*
17-
* @param productPath The file path of the product to load
18-
* @return LoadResult An object containing the loaded product ID and product
19-
* object
20-
* @throws UncheckedIOException If an IOException occurs while reading the file
21-
* @throws RuntimeException If the Product class is not found
2216
*/
2317
public class ProductLoadTask implements Callable<ProductLoadTask.LoadResult> {
2418
private static int processedCount = 0;

0 commit comments

Comments
 (0)