@Test public void testStandardConfig() { final JADT driver = JADT.standardConfigDriver(); assertTrue("Standard driver had wrong source factory", driver.sourceFactory instanceof FileSourceFactory); assertTrue("Standard driver had wrong parser", driver.parser instanceof StandardParser); assertTrue("Standard driver had wrong checker", driver.checker instanceof StandardChecker); assertTrue("Standard driver had wrong emitter", driver.emitter instanceof StandardDocEmitter); assertTrue("Standard driver had wrong sink factory factory", driver.factoryFactory instanceof FileSinkFactoryFactory); }
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); }
JADT { 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); } }
JADT { 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); } JADT(SourceFactory sourceFactory, Parser parser, Checker checker, DocEmitter emitter, SinkFactoryFactory factoryFactory); }
JADT { 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); } JADT(SourceFactory sourceFactory, Parser parser, Checker checker, DocEmitter emitter, SinkFactoryFactory factoryFactory); static void main(String[] args); static JADT standardConfigDriver(); void parseAndEmit(String[] args); void parseAndEmit(String srcPath, final String destDir); static JADT createDummyJADT(List<SyntaxError> syntaxErrors, List<SemanticError> semanticErrors, String testSrcInfo, SinkFactoryFactory factory); }
JADT { 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); } JADT(SourceFactory sourceFactory, Parser parser, Checker checker, DocEmitter emitter, SinkFactoryFactory factoryFactory); static void main(String[] args); static JADT standardConfigDriver(); void parseAndEmit(String[] args); void parseAndEmit(String srcPath, final String destDir); static JADT createDummyJADT(List<SyntaxError> syntaxErrors, List<SemanticError> semanticErrors, String testSrcInfo, SinkFactoryFactory factory); static final String TEST_CLASS_NAME; static final String TEST_SRC_INFO; static final String TEST_DIR; }