public static JADT standardConfigDriver ( ) { logger . fine ( "Using standard configuration." ) ; final SourceFactory sourceFactory = new FileSourceFactory ( ) ; final ClassBodyEmitter classBodyEmitter = new StandardClassBodyEmitter ( ) ; final ConstructorEmitter constructorEmitter = new StandardConstructorEmitter ( classBodyEmitter ) ; final DataTypeEmitter dataTypeEmitter = new StandardDataTypeEmitter ( classBodyEmitter , constructorEmitter ) ; final DocEmitter docEmitter = new StandardDocEmitter ( dataTypeEmitter ) ; final Parser parser = new StandardParser ( new JavaCCParserImplFactory ( ) ) ; final Checker checker = new StandardChecker ( ) ; final SinkFactoryFactory factoryFactory = new FileSinkFactoryFactory ( ) ; return new JADT ( sourceFactory , parser , checker , docEmitter , factoryFactory ) ; }
Convenient factory method to create a complete standard configuration