reflection-analyzer-java

Java Reflection Metadata Analyzer

A tool designed to inspect Java class hierarchies using the Java Reflection API. This project scans type systems to identify and rank classes based on structural metrics such as field counts, method signatures, and inheritance depth.


Technical Overview


Features


Usage

1. JDK Analysis

Analyze the top 10 classes within the standard Java libraries:

java Main 10

2. Targeted Analysis

Analyze specific classes from an input file and save results to an output file:

java -cp .;libraries\commons-lang3-3.17.0.jar Main resources\input.txt resources\output.txt 10


Documentation

The API documentation, generated via Javadoc, is available here: Javadoc Page


Building and Running

The project is structured for command-line execution. Ensure you are in the root directory before running these commands.

1. Compile

javac -d bin -cp "libraries/*" ClassScanner.java Main.java

2. Run (JDK Mode)

java -cp "bin;libraries/*" Main 10

3. Run (Target File Mode)

java -cp "bin;libraries/*" Main resources/input.txt resources/output.txt 10


License

This project is licensed under the MIT License.