-
Notifications
You must be signed in to change notification settings - Fork 212
Open
Labels
Hacktoberfest25This issue is created as a part of Hacktoberfest 2025 programThis issue is created as a part of Hacktoberfest 2025 programgood first issueGood for newcomersGood for newcomers
Description
- Description: Metadata added to code elements, used by the compiler or frameworks.
- Graphing Strategy: Model with an
ANNOTATES
relationship from an:Annotation
node to the code element it modifies.
Implementation Steps
This requires an :Annotation
node type and an ANNOTATES
relationship.
-
Modify the Java Parser (
.../languages/java.py
)- Add queries to find both
annotation
definitions and their usage. - Create
_find_annotations
(for definitions) and_find_annotation_applications
methods. - Return results under keys
"annotations"
and"annotation_applications"
.
- Add queries to find both
-
Update the Generic Graph Builder (
.../tools/graph_builder.py
)- Add the
:Annotation
node type following the standard procedure (schema anditem_mappings
). - Add a new section in
add_file_to_graph
to processannotation_applications
and create theANNOTATES
relationships between the:Annotation
node and the annotated element.
- Add the
Metadata
Metadata
Assignees
Labels
Hacktoberfest25This issue is created as a part of Hacktoberfest 2025 programThis issue is created as a part of Hacktoberfest 2025 programgood first issueGood for newcomersGood for newcomers