# bekhechiwahib/java_static_analyzer architecture

> Architecture diagram of the GitHub repository bekhechiwahib/java_static_analyzer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bekhechiwahib/java_static_analyzer
- Repository: https://github.com/bekhechiwahib/java_static_analyzer

## Overview

This is a command-line static analyzer that reads Java source without executing it. The documented workflow parses source with Eclipse JDT, extracts structure and calls into a JDT-independent fact model, then computes metrics and/or a call graph for CLI output; callers/callees queries support impact analysis. The README documents the component boundaries and capabilities, but the repository tree contains no implementation files, so source paths and implementation-level call ownership cannot be verified. Edges below reflect documented relationships only.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["CLI and input"]
  node_cli["CLI"]
end

subgraph group_extraction["Source extraction"]
  node_model_extractor["Model extractor"]
  node_property_extractors["Property extractors"]
end

subgraph group_facts["Fact model"]
  node_fact_model["Fact model"]
end

subgraph group_analysis["Analysis"]
  node_metrics["Metrics"]
  node_call_graph["Call graph"]
end

node_analyst(("Analyst"))
node_java_project["Java project"]
node_jdt["Eclipse JDT"]

node_analyst -->|"runs"| node_cli
node_cli -->|"analyzes"| node_java_project
node_java_project -->|"provides source"| node_model_extractor
node_model_extractor -->|"parses with"| node_jdt
node_model_extractor -->|"provides AST"| node_property_extractors
node_property_extractors -->|"extracts facts"| node_fact_model
node_fact_model -->|"supplies facts"| node_metrics
node_fact_model -->|"supplies facts"| node_call_graph
node_metrics -->|"provides results"| node_cli
node_call_graph -->|"provides graph and queries"| node_cli

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli toneBlue
class node_model_extractor,node_property_extractors toneAmber
class node_fact_model toneMint
class node_metrics,node_call_graph toneRose
class node_analyst,node_java_project,node_jdt toneIndigo
```

## Components

### CLI and input

- **CLI**

### Source extraction

- **Model extractor**
- **Property extractors**

### Fact model

- **Fact model**

### Analysis

- **Metrics**
- **Call graph**

### Other components

- **Analyst**
- **Java project**
- **Eclipse JDT**

## Connections

- Analyst → CLI: runs (evidence: `README.md`)
- CLI → Java project: analyzes (evidence: `README.md`)
- Java project → Model extractor: provides source (evidence: `README.md`)
- Model extractor → Eclipse JDT: parses with (evidence: `README.md`)
- Model extractor → Property extractors: provides AST (evidence: `README.md`)
- Property extractors → Fact model: extracts facts (evidence: `README.md`)
- Fact model → Metrics: supplies facts (evidence: `README.md`)
- Fact model → Call graph: supplies facts (evidence: `README.md`)
- Metrics → CLI: provides results (evidence: `README.md`)
- Call graph → CLI: provides graph and queries (evidence: `README.md`)
