holgerbrandl / kravis

A {K}otlin g{ra}mmar for data {vis}ualization
BSD 2-Clause "Simplified" License
183 stars 12 forks source link

Use bytecode scanner to infer axis labels when using extractor functions #14

Open holgerbrandl opened 6 years ago

holgerbrandl commented 6 years ago

Example

sleepPatterns
    .ggplot(
x = { sleep_total/60 },
y = { sleep_rem }
).geomPoint()

We should get the java class of the lambda and then use a bytecode analyzing library to look for an invocation bytecode. See https://asm.ow2.io/