void compile ( ) { TypeInfo factoryType = innerClasses . registerInnerClass ( FACTORY_CLASS , FACTORY_ACCESS ) ; SoyClassWriter cw = SoyClassWriter . builder ( factoryType ) . implementing ( FACTORY_TYPE ) . setAccess ( FACTORY_ACCESS ) . sourceFileName ( templateNode . getSourceLocation ( ) . getFileName ( ) ) . build ( ) ; innerClasses . registerAsInnerClass ( cw , factoryType ) ; generateStaticInitializer ( cw ) ; defineDefaultConstructor ( cw , factoryType ) ; generateCreateMethod ( cw , factoryType ) ; cw . visitEnd ( ) ; innerClasses . add ( cw . toClassData ( ) ) ; }
Compiles the factory .