Home
last modified time | relevance | path

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

/external/javapoet/src/main/java/com/squareup/javapoet/
DCodeWriter.java57 private final Set<String> alwaysQualify; field in CodeWriter
75 CodeWriter(Appendable out, String indent, Set<String> staticImports, Set<String> alwaysQualify) { in CodeWriter() argument
76 this(out, indent, Collections.emptyMap(), staticImports, alwaysQualify); in CodeWriter()
83 Set<String> alwaysQualify) { in CodeWriter() argument
88 this.alwaysQualify = checkNotNull(alwaysQualify, "alwaysQualify == null"); in CodeWriter()
417 } else if (alwaysQualify.contains(className.simpleName)) { in importableType()
DJavaFile.java64 private final Set<String> alwaysQualify; field in JavaFile
77 this.alwaysQualify = Util.immutableSet(alwaysQualifiedNames); in JavaFile()
93 alwaysQualify in writeTo()
100 = new CodeWriter(out, indent, suggestedImports, staticImports, alwaysQualify); in writeTo()
206 && !alwaysQualify.contains(className.simpleName)) { in emit()
DTypeSpec.java658 public Builder alwaysQualify(String... simpleNames) { in alwaysQualify() method in TypeSpec.Builder
698 alwaysQualify(nestedType.getSimpleName().toString()); in avoidClashesWithNestedClasses()
742 alwaysQualify(nestedType.getSimpleName()); in avoidClashesWithNestedClasses()
/external/javapoet/src/test/java/com/squareup/javapoet/
DJavaFileTest.java731 .alwaysQualify("Thread") in alwaysQualifySimple()
747 .alwaysQualify("Thread") in alwaysQualifySupersedesJavaLangImports()
DTypeSpecTest.java2287 .alwaysQualify("com.example.AlwaysQualified") in initializersToBuilder()
/external/javapoet/
DCHANGELOG.md22 * New: Add `TypeSpec.alwaysQualify()` API to avoid clashes involving nested type names.