public Class compile ( String sCode , String sName ) { GroovyClassLoader loader = getGroovyClassLoader ( ) ; LOG . warn ( "Compiling filter: " + sName ) ; Class groovyClass = loader . parseClass ( sCode , sName ) ; return groovyClass ; }
Compiles Groovy code and returns the Class of the compiles code .