public void init ( APUtils utils ) throws DuzztInitializationException { URL url = GenerateEDSLProcessor . class . getResource ( ST_RESOURCE_NAME ) ; this . sourceGenGroup = new STGroupFile ( url , ST_ENCODING , ST_DELIM_START_CHAR , ST_DELIM_STOP_CHAR ) ; sourceGenGroup . setListener ( new ReporterDiagnosticListener ( utils . getReporter ( ) ) ) ; sourceGenGroup . load ( ) ; if ( ! sourceGenGroup . isDefined ( ST_MAIN_TEMPLATE_NAME ) ) { sourceGenGroup = null ; throw new DuzztInitializationException ( "Could not find main template '" + ST_MAIN_TEMPLATE_NAME + "' in template group file " + url . toString ( ) ) ; } this . isJava9OrNewer = isJava9OrNewer ( utils . getProcessingEnv ( ) . getSourceVersion ( ) ) ; }
Initialize the Duzzt embedded DSL generator .