Searched refs:codeBlocks (Results 1 – 6 of 6) sorted by relevance
/external/javapoet/src/test/java/com/squareup/javapoet/ |
D | CodeBlockTest.java | 306 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 …]
|
D | TypeSpecTest.java | 1197 @Test public void codeBlocks() throws Exception { in codeBlocks() method in TypeSpecTest
|
/external/dagger2/java/dagger/internal/codegen/javapoet/ |
D | CodeBlocks.java | 56 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/ |
D | AnnotationExpression.java | 167 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/ |
D | ProducerFactoryGenerator.java | 471 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/ |
D | CodeBlock.java | 113 public static CodeBlock join(Iterable<CodeBlock> codeBlocks, String separator) { in join() argument 114 return StreamSupport.stream(codeBlocks.spliterator(), false).collect(joining(separator)); in join()
|