Add the API to IDocumentCompiler, will later add Javadoc.