protected void record ( final Sequencer . Context context , final char [ ] sourceCode , final Node outputNode ) throws Exception { if ( ( sourceCode == null ) || ( sourceCode . length == 0 ) ) { LOGGER . debug ( "No source code was found for output node {0}" , outputNode . getName ( ) ) ; return ; } this . context = context ; this . sourceCode = new String ( sourceCode ) ; this . compilationUnit = ( CompilationUnit ) CompilationUnitParser . runJLS3Conversion ( sourceCode , true ) ; outputNode . addMixin ( ClassFileSequencerLexicon . COMPILATION_UNIT ) ; record ( this . compilationUnit , outputNode ) ; }
Convert the compilation unit into JCR nodes .