generate_ast_and_detect_obfuscation
Generate ASTs from Java source to detect obfuscated and synthetic variable names such as var0, arg1, and single-letter identifiers.
Instructions
Uses GumTree Spoon AST Diff to parse Java source files, generate AST representations, and detect obfuscated or synthetic variable names (e.g., var0, arg1, single-letter, closure captures).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logPath | No | Path to output the obfuscation detection report. Defaults to logs/ast_obfuscation_detection.txt. | |
| sourceDir | No | Path to the Java source directory to analyze. Defaults to mavenized_merged_source/src/main/java. | |
| gumtreeJarPath | No | Path to the GumTree Spoon AST Diff JAR. Defaults to gumtree-ast-diff/gumtree-spoon-ast-diff-1.124.jar. |