Skip to content
fge edited this page Feb 26, 2013 · 5 revisions

Link to source code

https://github.com/fge/json-schema-processor-examples/blob/master/src/main/java/com/github/fge/compiler/CompilerProcessor.java

Inputs and outputs

  • Input: a ValueHolder<String>
  • Output: a CompilerOutput

What it does

As its name implies, it generates a compiled Java class out of a string, which contains the source file.

It autodetects the package name and class name, compiles it, and returns a result consisting of the class itself and the output directory.

Right now the output directory is a temporary directory. As the processor itself cannot delete it, this job is left to the caller.

Software used

None -- self contained.

Note: obviously enough, you need to have the full JDK installed for this processor to work at all, a JRE will not be enough.

Clone this wiki locally