@Test public void testRecipePragmaWithCompiler() throws Exception { String[] recipe = new String[] { "#pragma load-directives test1,test2,test3,test4;", "${directives}" }; CompileStatus compile = TestingRig.compile(recipe); Set<String> loadableDirectives = compile.getSymbols().getLoadableDirectives(); Assert.assertEquals(4, loadableDirectives.size()); }
@Override public CompileStatus compile(String recipe) throws CompileException { return compile(CharStreams.fromString(recipe)); }
RecipeCompiler implements Compiler { @Override public CompileStatus compile(String recipe) throws CompileException { return compile(CharStreams.fromString(recipe)); } }
RecipeCompiler implements Compiler { @Override public CompileStatus compile(String recipe) throws CompileException { return compile(CharStreams.fromString(recipe)); } RecipeCompiler(); }
RecipeCompiler implements Compiler { @Override public CompileStatus compile(String recipe) throws CompileException { return compile(CharStreams.fromString(recipe)); } RecipeCompiler(); @Override CompileStatus compile(String recipe); @Override CompileStatus compile(Location location); @Override CompileStatus compile(Path path); }
RecipeCompiler implements Compiler { @Override public CompileStatus compile(String recipe) throws CompileException { return compile(CharStreams.fromString(recipe)); } RecipeCompiler(); @Override CompileStatus compile(String recipe); @Override CompileStatus compile(Location location); @Override CompileStatus compile(Path path);  }