How to get all Gradle low level tasks?

Most of the Gradle tasks are very high level and when getting the task graph it includes tasks like compile java files to javac or test the whole package as one single task.
The low-level things like compiling each java file to a javac can be done in parallel. I’m wondering if there is a way to get the whole graph of tasks including low-level things beyond Gradle-tasks (i.e. generation of each javac file as a separate node in the graph, or every single unit test as one node in the graph)?

Is there any API to get the graph of all the tasks including the things that go beyond Gradle high-level tasks?