Home
last modified time | relevance | path

Searched refs:codeBlocks (Results 1 – 6 of 6) sorted by relevance

/external/javapoet/src/test/java/com/squareup/javapoet/
DCodeBlockTest.java306 List<CodeBlock> codeBlocks = new ArrayList<>(); in join() local
307 codeBlocks.add(CodeBlock.of("$S", "hello")); in join()
308 codeBlocks.add(CodeBlock.of("$T", ClassName.get("world", "World"))); in join()
309 codeBlocks.add(CodeBlock.of("need tacos")); in join()
311 CodeBlock joined = CodeBlock.join(codeBlocks, " || "); in join()
316 List<CodeBlock> codeBlocks = new ArrayList<>(); in joining() local
317 codeBlocks.add(CodeBlock.of("$S", "hello")); in joining()
318 codeBlocks.add(CodeBlock.of("$T", ClassName.get("world", "World"))); in joining()
319 codeBlocks.add(CodeBlock.of("need tacos")); in joining()
321 CodeBlock joined = codeBlocks.stream().collect(CodeBlock.joining(" || ")); in joining()
[all …]
DTypeSpecTest.java1197 @Test public void codeBlocks() throws Exception { in codeBlocks() method in TypeSpecTest
/external/dagger2/java/dagger/internal/codegen/javapoet/
DCodeBlocks.java56 public static CodeBlock makeParametersCodeBlock(Iterable<CodeBlock> codeBlocks) { in makeParametersCodeBlock() argument
57 return stream(codeBlocks.spliterator(), false).collect(toParametersCodeBlock()); in makeParametersCodeBlock()
75 public static CodeBlock concat(Iterable<CodeBlock> codeBlocks) { in concat() argument
76 return stream(codeBlocks.spliterator(), false).collect(toConcatenatedCodeBlock()); in concat()
/external/dagger2/java/dagger/internal/codegen/binding/
DAnnotationExpression.java167 ImmutableList.Builder<CodeBlock> codeBlocks = ImmutableList.builder(); in visitArray() local
169 codeBlocks.add(this.visit(value, p)); in visitArray()
171 return CodeBlock.of("{$L}", makeParametersCodeBlock(codeBlocks.build())); in visitArray()
/external/dagger2/java/dagger/internal/codegen/writing/
DProducerFactoryGenerator.java471 ImmutableList.Builder<CodeBlock> codeBlocks = ImmutableList.builder(); in parameterCodeBlocks() local
474 codeBlocks.add( in parameterCodeBlocks()
479 codeBlocks.add(frameworkTypeUsageStatement(dependency)); in parameterCodeBlocks()
482 return codeBlocks.build(); in parameterCodeBlocks()
/external/javapoet/src/main/java/com/squareup/javapoet/
DCodeBlock.java113 public static CodeBlock join(Iterable<CodeBlock> codeBlocks, String separator) { in join() argument
114 return StreamSupport.stream(codeBlocks.spliterator(), false).collect(joining(separator)); in join()