-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[livingdoc-9] Support for custom dependencies
- Loading branch information
Florian Schoenherr
committed
May 6, 2022
1 parent
60c2ec3
commit 862a7ee
Showing
29 changed files
with
395 additions
and
272 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
...ions/src/main/java/com/comsysto/livingdoc/s0t/annotation/plantuml/PlantUmlDependency.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
package com.comsysto.livingdoc.s0t.annotation.plantuml; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Repeatable; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Retention(RetentionPolicy.SOURCE) | ||
@Target(ElementType.TYPE) | ||
@Repeatable(PlantUmlDependencies.class) | ||
public @interface PlantUmlDependency { | ||
String target(); | ||
Class<?> target(); | ||
String description() default ""; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
processors/src/main/kotlin/com/comsysto/livingdoc/s0t/apextensions/TypeElementExtensions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.comsysto.livingdoc.s0t.apextensions | ||
|
||
import com.comsysto.livingdoc.s0t.annotation.plantuml.PlantUmlClass | ||
import com.comsysto.livingdoc.s0t.model.TypeName | ||
import javax.lang.model.element.TypeElement | ||
|
||
/** | ||
* Get the type element's qualified name as a string. | ||
*/ | ||
fun TypeElement.qName() = this.qualifiedName.toString() | ||
|
||
/** | ||
* Get the type element's qualified name as a TypeName. | ||
*/ | ||
fun TypeElement.typeName() = TypeName.parse(this.qualifiedName.toString()) | ||
|
||
/** | ||
* Checks if the type element is annotated with ``@PlantUmlClass``. | ||
*/ | ||
fun isPlantUmlClass(type: TypeElement) = type.getAnnotation(PlantUmlClass::class.java) != null | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
176 changes: 0 additions & 176 deletions
176
processors/src/main/kotlin/com/comsysto/livingdoc/s0t/model/Relation.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.