val path = Path.of("D:\\code_sample\\tmpdir")
val input = PathBasedAnalysisInputLocation.create(
path,
SourceType.Application,
java.util.List.of(new CopyPropagator())
)
val view = JavaView(input)
val sig = view.getIdentifierFactory.parseMethodSignature("<Test: void main(java.lang.String[])>")
println(view.getMethod(sig).get().getBody)
Test.class
It takes about 11s to do
getBody