SYMBOL INDEX (920 symbols across 39 files) FILE: src/main/java/com/squareup/javapoet/AnnotationSpec.java class AnnotationSpec (line 44) | public final class AnnotationSpec { method AnnotationSpec (line 50) | private AnnotationSpec(Builder builder) { method emit (line 55) | void emit(CodeWriter codeWriter, boolean inline) throws IOException { method emitAnnotationValues (line 89) | private void emitAnnotationValues(CodeWriter codeWriter, String whites... method get (line 110) | public static AnnotationSpec get(Annotation annotation) { method get (line 114) | public static AnnotationSpec get(Annotation annotation, boolean includ... method get (line 144) | public static AnnotationSpec get(AnnotationMirror annotation) { method builder (line 156) | public static Builder builder(ClassName type) { method builder (line 161) | public static Builder builder(Class type) { method toBuilder (line 165) | public Builder toBuilder() { method equals (line 173) | @Override public boolean equals(Object o) { method hashCode (line 180) | @Override public int hashCode() { method toString (line 184) | @Override public String toString() { class Builder (line 195) | public static final class Builder { method Builder (line 200) | private Builder(TypeName type) { method addMember (line 204) | public Builder addMember(String name, String format, Object... args) { method addMember (line 208) | public Builder addMember(String name, CodeBlock codeBlock) { method addMemberForValue (line 219) | Builder addMemberForValue(String memberName, Object value) { method build (line 244) | public AnnotationSpec build() { class Visitor (line 256) | private static class Visitor extends SimpleAnnotationValueVisitor8 ... FILE: src/main/java/com/squareup/javapoet/ArrayTypeName.java class ArrayTypeName (line 30) | public final class ArrayTypeName extends TypeName { method ArrayTypeName (line 33) | private ArrayTypeName(TypeName componentType) { method ArrayTypeName (line 37) | private ArrayTypeName(TypeName componentType, List ann... method annotated (line 42) | @Override public ArrayTypeName annotated(List annotati... method withoutAnnotations (line 46) | @Override public TypeName withoutAnnotations() { method emit (line 50) | @Override CodeWriter emit(CodeWriter out) throws IOException { method emit (line 54) | CodeWriter emit(CodeWriter out, boolean varargs) throws IOException { method emitLeafType (line 59) | private CodeWriter emitLeafType(CodeWriter out) throws IOException { method emitBrackets (line 66) | private CodeWriter emitBrackets(CodeWriter out, boolean varargs) throw... method of (line 82) | public static ArrayTypeName of(TypeName componentType) { method of (line 87) | public static ArrayTypeName of(Type componentType) { method get (line 92) | public static ArrayTypeName get(ArrayType mirror) { method get (line 96) | static ArrayTypeName get( method get (line 102) | public static ArrayTypeName get(GenericArrayType type) { method get (line 106) | static ArrayTypeName get(GenericArrayType type, Map annotations) { method withoutAnnotations (line 73) | @Override public ClassName withoutAnnotations() { method isAnnotated (line 81) | @Override public boolean isAnnotated() { method packageName (line 89) | public String packageName() { method enclosingClassName (line 97) | public ClassName enclosingClassName() { method topLevelClassName (line 105) | public ClassName topLevelClassName() { method reflectionName (line 110) | public String reflectionName() { method simpleNames (line 116) | public List simpleNames() { method peerClass (line 137) | public ClassName peerClass(String name) { method nestedClass (line 145) | public ClassName nestedClass(String name) { method simpleName (line 150) | public String simpleName() { method canonicalName (line 158) | public String canonicalName() { method get (line 162) | public static ClassName get(Class clazz) { method bestGuess (line 194) | public static ClassName bestGuess(String classNameString) { method get (line 218) | public static ClassName get(String packageName, String simpleName, Str... method get (line 227) | public static ClassName get(TypeElement element) { method compareTo (line 250) | @Override public int compareTo(ClassName o) { method emit (line 254) | @Override CodeWriter emit(CodeWriter out) throws IOException { method enclosingClasses (line 293) | private List enclosingClasses() { FILE: src/main/java/com/squareup/javapoet/CodeBlock.java class CodeBlock (line 65) | public final class CodeBlock { method CodeBlock (line 74) | private CodeBlock(Builder builder) { method isEmpty (line 79) | public boolean isEmpty() { method equals (line 83) | @Override public boolean equals(Object o) { method hashCode (line 90) | @Override public int hashCode() { method toString (line 94) | @Override public String toString() { method of (line 104) | public static CodeBlock of(String format, Object... args) { method join (line 113) | public static CodeBlock join(Iterable codeBlocks, String se... method joining (line 122) | public static Collector joining(String separa... method joining (line 135) | public static Collector joining( method builder (line 148) | public static Builder builder() { method toBuilder (line 152) | public Builder toBuilder() { class Builder (line 159) | public static final class Builder { method Builder (line 163) | private Builder() { method isEmpty (line 166) | public boolean isEmpty() { method addNamed (line 181) | public Builder addNamed(String format, Map arguments) { method add (line 238) | public Builder add(String format, Object... args) { method isNoArgPlaceholder (line 314) | private boolean isNoArgPlaceholder(char c) { method addArgument (line 318) | private void addArgument(String format, char c, Object arg) { method argToName (line 338) | private String argToName(Object o) { method argToLiteral (line 347) | private Object argToLiteral(Object o) { method argToString (line 351) | private String argToString(Object o) { method argToType (line 355) | private TypeName argToType(Object o) { method beginControlFlow (line 367) | public Builder beginControlFlow(String controlFlow, Object... args) { method nextControlFlow (line 377) | public Builder nextControlFlow(String controlFlow, Object... args) { method endControlFlow (line 384) | public Builder endControlFlow() { method endControlFlow (line 394) | public Builder endControlFlow(String controlFlow, Object... args) { method addStatement (line 400) | public Builder addStatement(String format, Object... args) { method addStatement (line 407) | public Builder addStatement(CodeBlock codeBlock) { method add (line 411) | public Builder add(CodeBlock codeBlock) { method indent (line 417) | public Builder indent() { method unindent (line 422) | public Builder unindent() { method clear (line 427) | public Builder clear() { method build (line 433) | public CodeBlock build() { class CodeBlockJoiner (line 438) | private static final class CodeBlockJoiner { method CodeBlockJoiner (line 443) | CodeBlockJoiner(String delimiter, Builder builder) { method add (line 448) | CodeBlockJoiner add(CodeBlock codeBlock) { method merge (line 458) | CodeBlockJoiner merge(CodeBlockJoiner other) { method join (line 466) | CodeBlock join() { FILE: src/main/java/com/squareup/javapoet/CodeWriter.java class CodeWriter (line 44) | final class CodeWriter { method CodeWriter (line 73) | CodeWriter(Appendable out) { method CodeWriter (line 77) | CodeWriter(Appendable out, String indent, Set staticImports, S... method CodeWriter (line 81) | CodeWriter(Appendable out, method importedTypes (line 97) | public Map importedTypes() { method indent (line 101) | public CodeWriter indent() { method indent (line 105) | public CodeWriter indent(int levels) { method unindent (line 110) | public CodeWriter unindent() { method unindent (line 114) | public CodeWriter unindent(int levels) { method pushPackage (line 120) | public CodeWriter pushPackage(String packageName) { method popPackage (line 126) | public CodeWriter popPackage() { method pushType (line 132) | public CodeWriter pushType(TypeSpec type) { method popType (line 137) | public CodeWriter popType() { method emitComment (line 142) | public void emitComment(CodeBlock codeBlock) throws IOException { method emitJavadoc (line 153) | public void emitJavadoc(CodeBlock javadocCodeBlock) throws IOException { method emitAnnotations (line 166) | public void emitAnnotations(List annotations, boolean ... method emitModifiers (line 177) | public void emitModifiers(Set modifiers, Set impli... method emitModifiers (line 187) | public void emitModifiers(Set modifiers) throws IOException { method emitTypeVariables (line 195) | public void emitTypeVariables(List typeVariables) th... method popTypeVariables (line 216) | public void popTypeVariables(List typeVariables) thr... method emit (line 220) | public CodeWriter emit(String s) throws IOException { method emit (line 224) | public CodeWriter emit(String format, Object... args) throws IOExcepti... method emit (line 228) | public CodeWriter emit(CodeBlock codeBlock) throws IOException { method emit (line 232) | public CodeWriter emit(CodeBlock codeBlock, boolean ensureTrailingNewl... method emitWrappingSpace (line 327) | public CodeWriter emitWrappingSpace() throws IOException { method extractMemberName (line 332) | private static String extractMemberName(String part) { method emitStaticImportMember (line 342) | private boolean emitStaticImportMember(String canonical, String part) ... method emitLiteral (line 356) | private void emitLiteral(Object o) throws IOException { method lookupName (line 376) | String lookupName(ClassName className) { method importableType (line 416) | private void importableType(ClassName className) { method resolve (line 436) | private ClassName resolve(String simpleName) { method stackClassName (line 459) | private ClassName stackClassName(int stackDepth, String simpleName) { method emitAndIndent (line 472) | CodeWriter emitAndIndent(String s) throws IOException { method emitIndentation (line 510) | private void emitIndentation() throws IOException { method suggestedImports (line 520) | Map suggestedImports() { class Multiset (line 527) | private static final class Multiset { method add (line 530) | void add(T t) { method remove (line 535) | void remove(T t) { method contains (line 543) | boolean contains(T t) { FILE: src/main/java/com/squareup/javapoet/FieldSpec.java class FieldSpec (line 32) | public final class FieldSpec { method FieldSpec (line 40) | private FieldSpec(Builder builder) { method hasModifier (line 51) | public boolean hasModifier(Modifier modifier) { method emit (line 55) | void emit(CodeWriter codeWriter, Set implicitModifiers) thro... method equals (line 67) | @Override public boolean equals(Object o) { method hashCode (line 74) | @Override public int hashCode() { method toString (line 78) | @Override public String toString() { method builder (line 89) | public static Builder builder(TypeName type, String name, Modifier... ... method builder (line 96) | public static Builder builder(Type type, String name, Modifier... modi... method toBuilder (line 100) | public Builder toBuilder() { class Builder (line 109) | public static final class Builder { method Builder (line 119) | private Builder(TypeName type, String name) { method addJavadoc (line 124) | public Builder addJavadoc(String format, Object... args) { method addJavadoc (line 129) | public Builder addJavadoc(CodeBlock block) { method addAnnotations (line 134) | public Builder addAnnotations(Iterable annotationSpe... method addAnnotation (line 142) | public Builder addAnnotation(AnnotationSpec annotationSpec) { method addAnnotation (line 147) | public Builder addAnnotation(ClassName annotation) { method addAnnotation (line 152) | public Builder addAnnotation(Class annotation) { method addModifiers (line 156) | public Builder addModifiers(Modifier... modifiers) { method initializer (line 161) | public Builder initializer(String format, Object... args) { method initializer (line 165) | public Builder initializer(CodeBlock codeBlock) { method build (line 171) | public FieldSpec build() { FILE: src/main/java/com/squareup/javapoet/JavaFile.java class JavaFile (line 46) | public final class JavaFile { method append (line 48) | @Override public Appendable append(CharSequence charSequence) { method append (line 51) | @Override public Appendable append(CharSequence charSequence, int star... method append (line 54) | @Override public Appendable append(char c) { method JavaFile (line 67) | private JavaFile(Builder builder) { method fillAlwaysQualifiedNames (line 80) | private void fillAlwaysQualifiedNames(TypeSpec spec, Set alway... method writeTo (line 87) | public void writeTo(Appendable out) throws IOException { method writeTo (line 105) | public void writeTo(Path directory) throws IOException { method writeTo (line 113) | public void writeTo(Path directory, Charset charset) throws IOException { method writeToPath (line 121) | public Path writeToPath(Path directory) throws IOException { method writeToPath (line 130) | public Path writeToPath(Path directory, Charset charset) throws IOExce... method writeTo (line 150) | public void writeTo(File directory) throws IOException { method writeToFile (line 158) | public File writeToFile(File directory) throws IOException { method writeTo (line 164) | public void writeTo(Filer filer) throws IOException { method emit (line 182) | private void emit(CodeWriter codeWriter) throws IOException { method equals (line 222) | @Override public boolean equals(Object o) { method hashCode (line 229) | @Override public int hashCode() { method toString (line 233) | @Override public String toString() { method toJavaFileObject (line 243) | public JavaFileObject toJavaFileObject() { method builder (line 262) | public static Builder builder(String packageName, TypeSpec typeSpec) { method toBuilder (line 268) | public Builder toBuilder() { class Builder (line 276) | public static final class Builder { method Builder (line 285) | private Builder(String packageName, TypeSpec typeSpec) { method addFileComment (line 290) | public Builder addFileComment(String format, Object... args) { method addStaticImport (line 295) | public Builder addStaticImport(Enum constant) { method addStaticImport (line 299) | public Builder addStaticImport(Class clazz, String... names) { method addStaticImport (line 303) | public Builder addStaticImport(ClassName className, String... names) { method skipJavaLangImports (line 322) | public Builder skipJavaLangImports(boolean skipJavaLangImports) { method indent (line 327) | public Builder indent(String indent) { method build (line 332) | public JavaFile build() { FILE: src/main/java/com/squareup/javapoet/LineWrapper.java class LineWrapper (line 26) | final class LineWrapper { method LineWrapper (line 48) | LineWrapper(Appendable out, String indent, int columnLimit) { method lastChar (line 56) | char lastChar() { method append (line 61) | void append(String s) throws IOException { method wrappingSpace (line 88) | void wrappingSpace(int indentLevel) throws IOException { method zeroWidthSpace (line 98) | void zeroWidthSpace(int indentLevel) throws IOException { method close (line 108) | void close() throws IOException { method flush (line 114) | private void flush(FlushType flushType) throws IOException { type FlushType (line 139) | private enum FlushType { class RecordingAppendable (line 144) | static final class RecordingAppendable implements Appendable { method RecordingAppendable (line 149) | RecordingAppendable(Appendable delegate) { method append (line 153) | @Override public Appendable append(CharSequence csq) throws IOExcept... method append (line 161) | @Override public Appendable append(CharSequence csq, int start, int ... method append (line 166) | @Override public Appendable append(char c) throws IOException { FILE: src/main/java/com/squareup/javapoet/MethodSpec.java class MethodSpec (line 43) | public final class MethodSpec { method MethodSpec (line 58) | private MethodSpec(Builder builder) { method lastParameterIsArray (line 78) | private boolean lastParameterIsArray(List parameters) { method emit (line 83) | void emit(CodeWriter codeWriter, String enclosingName, Set i... method javadocWithParameters (line 143) | private CodeBlock javadocWithParameters() { method hasModifier (line 157) | public boolean hasModifier(Modifier modifier) { method isConstructor (line 161) | public boolean isConstructor() { method equals (line 165) | @Override public boolean equals(Object o) { method hashCode (line 172) | @Override public int hashCode() { method toString (line 176) | @Override public String toString() { method methodBuilder (line 187) | public static Builder methodBuilder(String name) { method constructorBuilder (line 191) | public static Builder constructorBuilder() { method overriding (line 204) | public static Builder overriding(ExecutableElement method) { method overriding (line 257) | public static Builder overriding( method toBuilder (line 279) | public Builder toBuilder() { class Builder (line 294) | public static final class Builder { method Builder (line 309) | private Builder(String name) { method setName (line 313) | public Builder setName(String name) { method addJavadoc (line 322) | public Builder addJavadoc(String format, Object... args) { method addJavadoc (line 327) | public Builder addJavadoc(CodeBlock block) { method addAnnotations (line 332) | public Builder addAnnotations(Iterable annotationSpe... method addAnnotation (line 340) | public Builder addAnnotation(AnnotationSpec annotationSpec) { method addAnnotation (line 345) | public Builder addAnnotation(ClassName annotation) { method addAnnotation (line 350) | public Builder addAnnotation(Class annotation) { method addModifiers (line 354) | public Builder addModifiers(Modifier... modifiers) { method addModifiers (line 360) | public Builder addModifiers(Iterable modifiers) { method addTypeVariables (line 368) | public Builder addTypeVariables(Iterable typeVaria... method addTypeVariable (line 376) | public Builder addTypeVariable(TypeVariableName typeVariable) { method returns (line 381) | public Builder returns(TypeName returnType) { method returns (line 387) | public Builder returns(Type returnType) { method addParameters (line 391) | public Builder addParameters(Iterable parameterSpecs) { method addParameter (line 399) | public Builder addParameter(ParameterSpec parameterSpec) { method addParameter (line 404) | public Builder addParameter(TypeName type, String name, Modifier... ... method addParameter (line 408) | public Builder addParameter(Type type, String name, Modifier... modi... method varargs (line 412) | public Builder varargs() { method varargs (line 416) | public Builder varargs(boolean varargs) { method addExceptions (line 421) | public Builder addExceptions(Iterable exceptions) { method addException (line 429) | public Builder addException(TypeName exception) { method addException (line 434) | public Builder addException(Type exception) { method addCode (line 438) | public Builder addCode(String format, Object... args) { method addNamedCode (line 443) | public Builder addNamedCode(String format, Map args) { method addCode (line 448) | public Builder addCode(CodeBlock codeBlock) { method addComment (line 453) | public Builder addComment(String format, Object... args) { method defaultValue (line 458) | public Builder defaultValue(String format, Object... args) { method defaultValue (line 462) | public Builder defaultValue(CodeBlock codeBlock) { method beginControlFlow (line 472) | public Builder beginControlFlow(String controlFlow, Object... args) { method beginControlFlow (line 481) | public Builder beginControlFlow(CodeBlock codeBlock) { method nextControlFlow (line 489) | public Builder nextControlFlow(String controlFlow, Object... args) { method nextControlFlow (line 498) | public Builder nextControlFlow(CodeBlock codeBlock) { method endControlFlow (line 502) | public Builder endControlFlow() { method endControlFlow (line 511) | public Builder endControlFlow(String controlFlow, Object... args) { method endControlFlow (line 520) | public Builder endControlFlow(CodeBlock codeBlock) { method addStatement (line 524) | public Builder addStatement(String format, Object... args) { method addStatement (line 529) | public Builder addStatement(CodeBlock codeBlock) { method build (line 534) | public MethodSpec build() { FILE: src/main/java/com/squareup/javapoet/NameAllocator.java class NameAllocator (line 81) | public final class NameAllocator implements Cloneable { method NameAllocator (line 85) | public NameAllocator() { method NameAllocator (line 89) | private NameAllocator(LinkedHashSet allocatedNames, method newName (line 99) | public String newName(String suggestion) { method newName (line 108) | public String newName(String suggestion, Object tag) { method toJavaIdentifier (line 128) | public static String toJavaIdentifier(String suggestion) { method get (line 146) | public String get(Object tag) { method clone (line 161) | @Override FILE: src/main/java/com/squareup/javapoet/ParameterSpec.java class ParameterSpec (line 34) | public final class ParameterSpec { method ParameterSpec (line 41) | private ParameterSpec(Builder builder) { method hasModifier (line 49) | public boolean hasModifier(Modifier modifier) { method emit (line 53) | void emit(CodeWriter codeWriter, boolean varargs) throws IOException { method equals (line 64) | @Override public boolean equals(Object o) { method hashCode (line 71) | @Override public int hashCode() { method toString (line 75) | @Override public String toString() { method get (line 86) | public static ParameterSpec get(VariableElement element) { method parametersOf (line 98) | static List parametersOf(ExecutableElement method) { method isValidParameterName (line 106) | private static boolean isValidParameterName(String name) { method builder (line 115) | public static Builder builder(TypeName type, String name, Modifier... ... method builder (line 122) | public static Builder builder(Type type, String name, Modifier... modi... method toBuilder (line 126) | public Builder toBuilder() { method toBuilder (line 130) | Builder toBuilder(TypeName type, String name) { class Builder (line 137) | public static final class Builder { method Builder (line 145) | private Builder(TypeName type, String name) { method addJavadoc (line 150) | public Builder addJavadoc(String format, Object... args) { method addJavadoc (line 155) | public Builder addJavadoc(CodeBlock block) { method addAnnotations (line 160) | public Builder addAnnotations(Iterable annotationSpe... method addAnnotation (line 168) | public Builder addAnnotation(AnnotationSpec annotationSpec) { method addAnnotation (line 173) | public Builder addAnnotation(ClassName annotation) { method addAnnotation (line 178) | public Builder addAnnotation(Class annotation) { method addModifiers (line 182) | public Builder addModifiers(Modifier... modifiers) { method addModifiers (line 187) | public Builder addModifiers(Iterable modifiers) { method build (line 198) | public ParameterSpec build() { FILE: src/main/java/com/squareup/javapoet/ParameterizedTypeName.java class ParameterizedTypeName (line 31) | public final class ParameterizedTypeName extends TypeName { method ParameterizedTypeName (line 36) | ParameterizedTypeName(ParameterizedTypeName enclosingType, ClassName r... method ParameterizedTypeName (line 41) | private ParameterizedTypeName(ParameterizedTypeName enclosingType, Cla... method annotated (line 56) | @Override public ParameterizedTypeName annotated(List ... method withoutAnnotations (line 61) | @Override method emit (line 67) | @Override CodeWriter emit(CodeWriter out) throws IOException { method nestedClass (line 96) | public ParameterizedTypeName nestedClass(String name) { method nestedClass (line 106) | public ParameterizedTypeName nestedClass(String name, List t... method get (line 113) | public static ParameterizedTypeName get(ClassName rawType, TypeName...... method get (line 118) | public static ParameterizedTypeName get(Class rawType, Type... type... method get (line 123) | public static ParameterizedTypeName get(ParameterizedType type) { method get (line 128) | static ParameterizedTypeName get(ParameterizedType type, Map annotations) { method TypeName (line 107) | TypeName(List annotations) { method annotated (line 111) | public final TypeName annotated(AnnotationSpec... annotations) { method annotated (line 115) | public TypeName annotated(List annotations) { method withoutAnnotations (line 120) | public TypeName withoutAnnotations() { method concatAnnotations (line 127) | protected final List concatAnnotations(List map) { method list (line 368) | static List list(Type[] types) { method list (line 372) | static List list(Type[] types, Map m... method arrayComponent (line 381) | static TypeName arrayComponent(TypeName type) { method asArray (line 388) | static ArrayTypeName asArray(TypeName type) { FILE: src/main/java/com/squareup/javapoet/TypeSpec.java class TypeSpec (line 48) | public final class TypeSpec { method TypeSpec (line 68) | private TypeSpec(Builder builder) { method TypeSpec (line 101) | private TypeSpec(TypeSpec type) { method hasModifier (line 123) | public boolean hasModifier(Modifier modifier) { method classBuilder (line 127) | public static Builder classBuilder(String name) { method classBuilder (line 131) | public static Builder classBuilder(ClassName className) { method interfaceBuilder (line 135) | public static Builder interfaceBuilder(String name) { method interfaceBuilder (line 139) | public static Builder interfaceBuilder(ClassName className) { method enumBuilder (line 143) | public static Builder enumBuilder(String name) { method enumBuilder (line 147) | public static Builder enumBuilder(ClassName className) { method anonymousClassBuilder (line 151) | public static Builder anonymousClassBuilder(String typeArgumentsFormat... method anonymousClassBuilder (line 155) | public static Builder anonymousClassBuilder(CodeBlock typeArguments) { method annotationBuilder (line 159) | public static Builder annotationBuilder(String name) { method annotationBuilder (line 163) | public static Builder annotationBuilder(ClassName className) { method toBuilder (line 167) | public Builder toBuilder() { method emit (line 186) | void emit(CodeWriter codeWriter, String enumName, Set implic... method equals (line 348) | @Override public boolean equals(Object o) { method hashCode (line 355) | @Override public int hashCode() { method toString (line 359) | @Override public String toString() { type Kind (line 370) | public enum Kind { method Kind (line 400) | Kind(Set implicitFieldModifiers, class Builder (line 411) | public static final class Builder { method Builder (line 432) | private Builder(Kind kind, String name, method addJavadoc (line 440) | public Builder addJavadoc(String format, Object... args) { method addJavadoc (line 445) | public Builder addJavadoc(CodeBlock block) { method addAnnotations (line 450) | public Builder addAnnotations(Iterable annotationSpe... method addAnnotation (line 458) | public Builder addAnnotation(AnnotationSpec annotationSpec) { method addAnnotation (line 464) | public Builder addAnnotation(ClassName annotation) { method addAnnotation (line 468) | public Builder addAnnotation(Class annotation) { method addModifiers (line 472) | public Builder addModifiers(Modifier... modifiers) { method addTypeVariables (line 477) | public Builder addTypeVariables(Iterable typeVaria... method addTypeVariable (line 485) | public Builder addTypeVariable(TypeVariableName typeVariable) { method superclass (line 490) | public Builder superclass(TypeName superclass) { method superclass (line 499) | public Builder superclass(Type superclass) { method superclass (line 503) | public Builder superclass(Type superclass, boolean avoidNestedTypeNa... method superclass (line 514) | public Builder superclass(TypeMirror superclass) { method superclass (line 518) | public Builder superclass(TypeMirror superclass, boolean avoidNested... method addSuperinterfaces (line 528) | public Builder addSuperinterfaces(Iterable super... method addSuperinterface (line 536) | public Builder addSuperinterface(TypeName superinterface) { method addSuperinterface (line 542) | public Builder addSuperinterface(Type superinterface) { method addSuperinterface (line 546) | public Builder addSuperinterface(Type superinterface, boolean avoidN... method getRawType (line 557) | private Class getRawType(Type type) { method addSuperinterface (line 567) | public Builder addSuperinterface(TypeMirror superinterface) { method addSuperinterface (line 571) | public Builder addSuperinterface(TypeMirror superinterface, method addEnumConstant (line 582) | public Builder addEnumConstant(String name) { method addEnumConstant (line 586) | public Builder addEnumConstant(String name, TypeSpec typeSpec) { method addFields (line 591) | public Builder addFields(Iterable fieldSpecs) { method addField (line 599) | public Builder addField(FieldSpec fieldSpec) { method addField (line 604) | public Builder addField(TypeName type, String name, Modifier... modi... method addField (line 608) | public Builder addField(Type type, String name, Modifier... modifier... method addStaticBlock (line 612) | public Builder addStaticBlock(CodeBlock block) { method addInitializerBlock (line 617) | public Builder addInitializerBlock(CodeBlock block) { method addMethods (line 629) | public Builder addMethods(Iterable methodSpecs) { method addMethod (line 637) | public Builder addMethod(MethodSpec methodSpec) { method addTypes (line 642) | public Builder addTypes(Iterable typeSpecs) { method addType (line 650) | public Builder addType(TypeSpec typeSpec) { method addOriginatingElement (line 655) | public Builder addOriginatingElement(Element originatingElement) { method alwaysQualify (line 660) | public Builder alwaysQualify(String... simpleNames) { method avoidClashesWithNestedClasses (line 697) | public Builder avoidClashesWithNestedClasses(TypeElement typeElement) { method avoidClashesWithNestedClasses (line 741) | public Builder avoidClashesWithNestedClasses(Class clazz) { method build (line 756) | public TypeSpec build() { FILE: src/main/java/com/squareup/javapoet/TypeVariableName.java class TypeVariableName (line 34) | public final class TypeVariableName extends TypeName { method TypeVariableName (line 38) | private TypeVariableName(String name, List bounds) { method TypeVariableName (line 42) | private TypeVariableName(String name, List bounds, List annot... method withoutAnnotations (line 56) | @Override public TypeName withoutAnnotations() { method withBounds (line 60) | public TypeVariableName withBounds(Type... bounds) { method withBounds (line 64) | public TypeVariableName withBounds(TypeName... bounds) { method withBounds (line 68) | public TypeVariableName withBounds(List bounds) { method of (line 75) | private static TypeVariableName of(String name, List bounds) { method emit (line 82) | @Override CodeWriter emit(CodeWriter out) throws IOException { method get (line 88) | public static TypeVariableName get(String name) { method get (line 93) | public static TypeVariableName get(String name, TypeName... bounds) { method get (line 98) | public static TypeVariableName get(String name, Type... bounds) { method get (line 103) | public static TypeVariableName get(TypeVariable mirror) { method get (line 115) | static TypeVariableName get( method get (line 135) | public static TypeVariableName get(TypeParameterElement element) { method get (line 148) | public static TypeVariableName get(java.lang.reflect.TypeVariable t... method get (line 153) | static TypeVariableName get(java.lang.reflect.TypeVariable type, FILE: src/main/java/com/squareup/javapoet/Util.java class Util (line 35) | final class Util { method Util (line 36) | private Util() { method immutableMultimap (line 39) | static Map> immutableMultimap(Map> multim... method immutableMap (line 48) | static Map immutableMap(Map map) { method checkArgument (line 52) | static void checkArgument(boolean condition, String format, Object... ... method checkNotNull (line 56) | static T checkNotNull(T reference, String format, Object... args) { method checkState (line 61) | static void checkState(boolean condition, String format, Object... arg... method immutableList (line 65) | static List immutableList(Collection collection) { method immutableSet (line 69) | static Set immutableSet(Collection set) { method union (line 73) | static Set union(Set a, Set b) { method requireExactlyOneOf (line 80) | static void requireExactlyOneOf(Set modifiers, Modifier... m... method characterLiteralWithoutSingleQuotes (line 89) | static String characterLiteralWithoutSingleQuotes(char c) { method stringLiteralWithDoubleQuotes (line 106) | static String stringLiteralWithDoubleQuotes(String value, String inden... FILE: src/main/java/com/squareup/javapoet/WildcardTypeName.java class WildcardTypeName (line 31) | public final class WildcardTypeName extends TypeName { method WildcardTypeName (line 35) | private WildcardTypeName(List upperBounds, List lo... method WildcardTypeName (line 39) | private WildcardTypeName(List upperBounds, List lo... method annotated (line 56) | @Override public WildcardTypeName annotated(List annot... method withoutAnnotations (line 60) | @Override public TypeName withoutAnnotations() { method emit (line 64) | @Override CodeWriter emit(CodeWriter out) throws IOException { method subtypeOf (line 79) | public static WildcardTypeName subtypeOf(TypeName upperBound) { method subtypeOf (line 83) | public static WildcardTypeName subtypeOf(Type upperBound) { method supertypeOf (line 91) | public static WildcardTypeName supertypeOf(TypeName lowerBound) { method supertypeOf (line 96) | public static WildcardTypeName supertypeOf(Type lowerBound) { method get (line 100) | public static TypeName get(javax.lang.model.type.WildcardType mirror) { method get (line 104) | static TypeName get( method get (line 120) | public static TypeName get(WildcardType wildcardName) { method get (line 124) | static TypeName get(WildcardType wildcardName, Map clazz) { method getMirror (line 60) | private TypeMirror getMirror(Class clazz) { method getBasicTypeMirror (line 64) | @Test public void getBasicTypeMirror() { method getParameterizedTypeMirror (line 73) | @Test public void getParameterizedTypeMirror() { method errorTypes (line 80) | @Test public void errorTypes() { class Parameterized (line 114) | static class Parameterized< method getTypeVariableTypeMirror (line 122) | @Test public void getTypeVariableTypeMirror() { class Recursive (line 147) | static class Recursive, Set>> {} method getTypeVariableTypeMirrorRecursive (line 149) | @Test method getPrimitiveTypeMirror (line 169) | @Test public void getPrimitiveTypeMirror() { method getArrayTypeMirror (line 188) | @Test public void getArrayTypeMirror() { method getVoidTypeMirror (line 193) | @Test public void getVoidTypeMirror() { method getNullTypeMirror (line 198) | @Test public void getNullTypeMirror() { method parameterizedType (line 206) | @Test public void parameterizedType() throws Exception { method arrayType (line 211) | @Test public void arrayType() throws Exception { method wildcardExtendsType (line 216) | @Test public void wildcardExtendsType() throws Exception { method wildcardExtendsObject (line 221) | @Test public void wildcardExtendsObject() throws Exception { method wildcardSuperType (line 226) | @Test public void wildcardSuperType() throws Exception { method wildcardMirrorNoBounds (line 231) | @Test public void wildcardMirrorNoBounds() throws Exception { method wildcardMirrorExtendsType (line 237) | @Test public void wildcardMirrorExtendsType() throws Exception { method wildcardMirrorSuperType (line 246) | @Test public void wildcardMirrorSuperType() throws Exception { method typeVariable (line 255) | @Test public void typeVariable() throws Exception { method box (line 260) | @Test public void box() throws Exception { method unbox (line 269) | @Test public void unbox() throws Exception { FILE: src/test/java/com/squareup/javapoet/AnnotatedTypeNameTest.java class AnnotatedTypeNameTest (line 30) | public class AnnotatedTypeNameTest { method nullAnnotationArray (line 45) | @Test(expected=NullPointerException.class) public void nullAnnotationA... method nullAnnotationList (line 49) | @Test(expected=NullPointerException.class) public void nullAnnotationL... method annotated (line 53) | @Test public void annotated() { method annotatedType (line 63) | @Test public void annotatedType() { method annotatedTwice (line 69) | @Test public void annotatedTwice() { method annotatedParameterizedType (line 78) | @Test public void annotatedParameterizedType() { method annotatedArgumentOfParameterizedType (line 84) | @Test public void annotatedArgumentOfParameterizedType() { method annotatedWildcardTypeNameWithSuper (line 90) | @Test public void annotatedWildcardTypeNameWithSuper() { method annotatedWildcardTypeNameWithExtends (line 96) | @Test public void annotatedWildcardTypeNameWithExtends() { method annotatedEquivalence (line 102) | @Test public void annotatedEquivalence() { method annotatedEquivalence (line 111) | private void annotatedEquivalence(TypeName type) { method annotatedNestedType (line 123) | @Test public void annotatedNestedType() { method annotatedEnclosingAndNestedType (line 128) | @Test public void annotatedEnclosingAndNestedType() { method annotatedNestedParameterizedType (line 135) | @Test public void annotatedNestedParameterizedType() { method withoutAnnotationsOnAnnotatedEnclosingAndNestedType (line 142) | @Test public void withoutAnnotationsOnAnnotatedEnclosingAndNestedType() { method withoutAnnotationsOnAnnotatedEnclosingType (line 149) | @Test public void withoutAnnotationsOnAnnotatedEnclosingType() { method withoutAnnotationsOnAnnotatedNestedType (line 156) | @Test public void withoutAnnotationsOnAnnotatedNestedType() { method annotatedArrayType (line 164) | @Test public void annotatedArrayType() { method annotatedArrayElementType (line 169) | @Test public void annotatedArrayElementType() { method annotatedOuterMultidimensionalArrayType (line 175) | @Test public void annotatedOuterMultidimensionalArrayType() { method annotatedInnerMultidimensionalArrayType (line 182) | @Test public void annotatedInnerMultidimensionalArrayType() { method annotatedArrayTypeVarargsParameter (line 189) | @Test public void annotatedArrayTypeVarargsParameter() { method annotatedArrayTypeInVarargsParameter (line 204) | @Test public void annotatedArrayTypeInVarargsParameter() { FILE: src/test/java/com/squareup/javapoet/AnnotationSpecTest.java class AnnotationSpecTest (line 32) | public final class AnnotationSpecTest { type Breakfast (line 48) | public enum Breakfast { method toString (line 50) | public String toString() { return name() + " with cherries!"; } class IsAnnotated (line 94) | @HasDefaultsAnnotation( method equalsAndHashCode (line 109) | @Test public void equalsAndHashCode() { method defaultAnnotation (line 120) | @Test public void defaultAnnotation() { method defaultAnnotationWithImport (line 157) | @Test public void defaultAnnotationWithImport() { method emptyArray (line 193) | @Test public void emptyArray() { method dynamicArrayOfEnumConstants (line 206) | @Test public void dynamicArrayOfEnumConstants() { method defaultAnnotationToBuilder (line 245) | @Test public void defaultAnnotationToBuilder() { method reflectAnnotation (line 264) | @Test public void reflectAnnotation() { method reflectAnnotationWithDefaults (line 298) | @Test public void reflectAnnotationWithDefaults() { method disallowsNullMemberName (line 356) | @Test public void disallowsNullMemberName() { method requiresValidMemberName (line 366) | @Test public void requiresValidMemberName() { method modifyMembers (line 376) | @Test public void modifyMembers() { method toString (line 386) | private String toString(TypeSpec typeSpec) { FILE: src/test/java/com/squareup/javapoet/ClassNameTest.java class ClassNameTest (line 33) | @RunWith(JUnit4.class) method bestGuessForString_simpleClass (line 37) | @Test public void bestGuessForString_simpleClass() { method bestGuessNonAscii (line 42) | @Test public void bestGuessNonAscii() { class OuterClass (line 49) | static class OuterClass { class InnerClass (line 50) | static class InnerClass {} method bestGuessForString_nestedClass (line 53) | @Test public void bestGuessForString_nestedClass() { method bestGuessForString_defaultPackage (line 61) | @Test public void bestGuessForString_defaultPackage() { method bestGuessForString_confusingInput (line 70) | @Test public void bestGuessForString_confusingInput() { method assertBestGuessThrows (line 85) | private void assertBestGuessThrows(String s) { method createNestedClass (line 93) | @Test public void createNestedClass() { class $Outer (line 101) | static class $Outer { class $Inner (line 102) | static class $Inner {} method classNameFromTypeElement (line 105) | @Test public void classNameFromTypeElement() { method classNameFromTypeElementDoesntUseGetKind (line 119) | @Test public void classNameFromTypeElementDoesntUseGetKind() { method preventGetKind (line 133) | private TypeElement preventGetKind(TypeElement object) { method classNameFromClass (line 145) | @Test public void classNameFromClass() { method peerClass (line 160) | @Test public void peerClass() { method fromClassRejectionTypes (line 169) | @Test public void fromClassRejectionTypes() { method reflectionName (line 187) | @Test method canonicalName (line 197) | @Test FILE: src/test/java/com/squareup/javapoet/CodeBlockTest.java class CodeBlockTest (line 29) | public final class CodeBlockTest { method equalsAndHashCode (line 30) | @Test public void equalsAndHashCode() { method of (line 41) | @Test public void of() { method isEmpty (line 46) | @Test public void isEmpty() { method indentCannotBeIndexed (line 52) | @Test public void indentCannotBeIndexed() { method deindentCannotBeIndexed (line 63) | @Test public void deindentCannotBeIndexed() { method dollarSignEscapeCannotBeIndexed (line 74) | @Test public void dollarSignEscapeCannotBeIndexed() { method statementBeginningCannotBeIndexed (line 85) | @Test public void statementBeginningCannotBeIndexed() { method statementEndingCannotBeIndexed (line 96) | @Test public void statementEndingCannotBeIndexed() { method nameFormatCanBeIndexed (line 107) | @Test public void nameFormatCanBeIndexed() { method literalFormatCanBeIndexed (line 112) | @Test public void literalFormatCanBeIndexed() { method stringFormatCanBeIndexed (line 117) | @Test public void stringFormatCanBeIndexed() { method typeFormatCanBeIndexed (line 122) | @Test public void typeFormatCanBeIndexed() { method simpleNamedArgument (line 127) | @Test public void simpleNamedArgument() { method repeatedNamedArgument (line 134) | @Test public void repeatedNamedArgument() { method namedAndNoArgFormat (line 144) | @Test public void namedAndNoArgFormat() { method missingNamedArgument (line 152) | @Test public void missingNamedArgument() { method lowerCaseNamed (line 162) | @Test public void lowerCaseNamed() { method multipleNamedArguments (line 173) | @Test public void multipleNamedArguments() { method namedNewline (line 186) | @Test public void namedNewline() { method danglingNamed (line 193) | @Test public void danglingNamed() { method indexTooHigh (line 204) | @Test public void indexTooHigh() { method indexIsZero (line 213) | @Test public void indexIsZero() { method indexIsNegative (line 222) | @Test public void indexIsNegative() { method indexWithoutFormatType (line 231) | @Test public void indexWithoutFormatType() { method indexWithoutFormatTypeNotAtStringEnd (line 240) | @Test public void indexWithoutFormatTypeNotAtStringEnd() { method indexButNoArguments (line 249) | @Test public void indexButNoArguments() { method formatIndicatorAlone (line 258) | @Test public void formatIndicatorAlone() { method formatIndicatorWithoutIndexOrFormatType (line 267) | @Test public void formatIndicatorWithoutIndexOrFormatType() { method sameIndexCanBeUsedWithDifferentFormats (line 276) | @Test public void sameIndexCanBeUsedWithDifferentFormats() { method tooManyStatementEnters (line 283) | @Test public void tooManyStatementEnters() { method statementExitWithoutStatementEnter (line 294) | @Test public void statementExitWithoutStatementEnter() { method join (line 305) | @Test public void join() { method joining (line 315) | @Test public void joining() { method joiningSingle (line 325) | @Test public void joiningSingle() { method joiningWithPrefixAndSuffix (line 333) | @Test public void joiningWithPrefixAndSuffix() { method clear (line 343) | @Test public void clear() { FILE: src/test/java/com/squareup/javapoet/CodeWriterTest.java class CodeWriterTest (line 9) | public class CodeWriterTest { method emptyLineInJavaDocDosEndings (line 11) | @Test FILE: src/test/java/com/squareup/javapoet/FieldSpecTest.java class FieldSpecTest (line 25) | public class FieldSpecTest { method equalsAndHashCode (line 26) | @Test public void equalsAndHashCode() { method nullAnnotationsAddition (line 39) | @Test public void nullAnnotationsAddition() { method modifyAnnotations (line 50) | @Test public void modifyAnnotations() { method modifyModifiers (line 59) | @Test public void modifyModifiers() { FILE: src/test/java/com/squareup/javapoet/FileReadingTest.java class FileReadingTest (line 42) | @RunWith(JUnit4.class) method javaFileObjectUri (line 48) | @Test public void javaFileObjectUri() { method javaFileObjectKind (line 58) | @Test public void javaFileObjectKind() { method javaFileObjectCharacterContent (line 63) | @Test public void javaFileObjectCharacterContent() throws IOException { method javaFileObjectInputStreamIsUtf8 (line 76) | @Test public void javaFileObjectInputStreamIsUtf8() throws IOException { method compileJavaFile (line 86) | @Test public void compileJavaFile() throws Exception { FILE: src/test/java/com/squareup/javapoet/FileWritingTest.java class FileWritingTest (line 39) | @RunWith(JUnit4.class) method pathNotDirectory (line 51) | @Test public void pathNotDirectory() throws IOException { method fileNotDirectory (line 65) | @Test public void fileNotDirectory() throws IOException { method pathDefaultPackage (line 79) | @Test public void pathDefaultPackage() throws IOException { method fileDefaultPackage (line 87) | @Test public void fileDefaultPackage() throws IOException { method filerDefaultPackage (line 95) | @Test public void filerDefaultPackage() throws IOException { method pathNestedClasses (line 103) | @Test public void pathNestedClasses() throws IOException { method fileNestedClasses (line 117) | @Test public void fileNestedClasses() throws IOException { method filerNestedClasses (line 134) | @Test public void filerNestedClasses() throws IOException { method filerPassesOriginatingElements (line 148) | @Test public void filerPassesOriginatingElements() throws IOException { method filerClassesWithTabIndent (line 170) | @Test public void filerClassesWithTabIndent() throws IOException { method fileIsUtf8 (line 205) | @Test public void fileIsUtf8() throws IOException { method writeToPathReturnsPath (line 220) | @Test public void writeToPathReturnsPath() throws IOException { FILE: src/test/java/com/squareup/javapoet/JavaFileTest.java class JavaFileTest (line 37) | @RunWith(JUnit4.class) method getElement (line 42) | private TypeElement getElement(Class clazz) { method importStaticReadmeExample (line 46) | @Test public void importStaticReadmeExample() { method importStaticForCrazyFormatsWorks (line 91) | @Test public void importStaticForCrazyFormatsWorks() { method importStaticMixed (line 115) | @Test public void importStaticMixed() { method importStaticDynamic (line 153) | @Ignore("addStaticImport doesn't support members with $L") method importStaticNone (line 175) | @Test public void importStaticNone() { method importStaticOnce (line 191) | @Test public void importStaticOnce() { method importStaticTwice (line 210) | @Test public void importStaticTwice() { method importStaticUsingWildcards (line 230) | @Test public void importStaticUsingWildcards() { method importStaticTypeSpec (line 248) | private TypeSpec importStaticTypeSpec(String name) { method noImports (line 259) | @Test public void noImports() throws Exception { method singleImport (line 271) | @Test public void singleImport() throws Exception { method conflictingImports (line 288) | @Test public void conflictingImports() throws Exception { method annotatedTypeParam (line 308) | @Test public void annotatedTypeParam() throws Exception { method skipJavaLangImportsWithConflictingClassLast (line 329) | @Test public void skipJavaLangImportsWithConflictingClassLast() throws... method skipJavaLangImportsWithConflictingClassFirst (line 349) | @Test public void skipJavaLangImportsWithConflictingClassFirst() throw... method conflictingParentName (line 371) | @Test public void conflictingParentName() throws Exception { method conflictingChildName (line 407) | @Test public void conflictingChildName() throws Exception { method conflictingNameOutOfScope (line 443) | @Test public void conflictingNameOutOfScope() throws Exception { method nestedClassAndSuperclassShareName (line 483) | @Test public void nestedClassAndSuperclassShareName() throws Exception { method classAndSuperclassShareName (line 504) | @Test public void classAndSuperclassShareName() throws Exception { method conflictingAnnotation (line 518) | @Test public void conflictingAnnotation() throws Exception { method conflictingAnnotationReferencedClass (line 533) | @Test public void conflictingAnnotationReferencedClass() throws Except... method conflictingTypeVariableBound (line 550) | @Test public void conflictingTypeVariableBound() throws Exception { method superclassReferencesSelf (line 565) | @Test public void superclassReferencesSelf() throws Exception { method annotationIsNestedClass (line 583) | @Test public void annotationIsNestedClass() throws Exception { method defaultPackage (line 606) | @Test public void defaultPackage() throws Exception { method defaultPackageTypesAreNotImported (line 628) | @Test public void defaultPackageTypesAreNotImported() throws Exception { method topOfFileComment (line 640) | @Test public void topOfFileComment() throws Exception { method emptyLinesInTopOfFileComment (line 654) | @Test public void emptyLinesInTopOfFileComment() throws Exception { method packageClassConflictsWithNestedClass (line 672) | @Test public void packageClassConflictsWithNestedClass() throws Except... method packageClassConflictsWithSuperlass (line 691) | @Test public void packageClassConflictsWithSuperlass() throws Exception { method modifyStaticImports (line 707) | @Test public void modifyStaticImports() throws Exception { method alwaysQualifySimple (line 727) | @Test public void alwaysQualifySimple() { method alwaysQualifySupersedesJavaLangImports (line 743) | @Test public void alwaysQualifySupersedesJavaLangImports() { method avoidClashesWithNestedClasses_viaClass (line 760) | @Test public void avoidClashesWithNestedClasses_viaClass() { method avoidClashesWithNestedClasses_viaTypeElement (line 791) | @Test public void avoidClashesWithNestedClasses_viaTypeElement() { method avoidClashesWithNestedClasses_viaSuperinterfaceType (line 822) | @Test public void avoidClashesWithNestedClasses_viaSuperinterfaceType() { class Foo (line 861) | static class Foo { class NestedTypeA (line 862) | static class NestedTypeA { class NestedTypeB (line 865) | static class NestedTypeB { type FooInterface (line 870) | interface FooInterface { class NestedTypeA (line 871) | class NestedTypeA { class NestedTypeB (line 874) | class NestedTypeB { method childTypeBuilder (line 879) | private TypeSpec.Builder childTypeBuilder() { method avoidClashes_parentChild_superclass_type (line 891) | @Test method avoidClashes_parentChild_superclass_typeMirror (line 912) | @Test method avoidClashes_parentChild_superinterface_type (line 933) | @Test method avoidClashes_parentChild_superinterface_typeMirror (line 955) | @Test class Parent (line 979) | static class Parent implements ParentInterface { class Pattern (line 980) | static class Pattern { type ParentInterface (line 985) | interface ParentInterface { class Optional (line 986) | class Optional { method avoidClashes_mapEntry (line 992) | @Test FILE: src/test/java/com/squareup/javapoet/LineWrapperTest.java class LineWrapperTest (line 24) | @RunWith(JUnit4.class) method wrap (line 26) | @Test public void wrap() throws Exception { method noWrap (line 36) | @Test public void noWrap() throws Exception { method zeroWidthNoWrap (line 46) | @Test public void zeroWidthNoWrap() throws Exception { method nospaceWrapMax (line 56) | @Test public void nospaceWrapMax() throws Exception { method multipleWrite (line 66) | @Test public void multipleWrite() throws Exception { method fencepost (line 90) | @Test public void fencepost() throws Exception { method fencepostZeroWidth (line 102) | @Test public void fencepostZeroWidth() throws Exception { method overlyLongLinesWithoutLeadingSpace (line 114) | @Test public void overlyLongLinesWithoutLeadingSpace() throws Exception { method overlyLongLinesWithLeadingSpace (line 122) | @Test public void overlyLongLinesWithLeadingSpace() throws Exception { method overlyLongLinesWithLeadingZeroWidth (line 131) | @Test public void overlyLongLinesWithLeadingZeroWidth() throws Excepti... method noWrapEmbeddedNewlines (line 140) | @Test public void noWrapEmbeddedNewlines() throws Exception { method wrapEmbeddedNewlines (line 151) | @Test public void wrapEmbeddedNewlines() throws Exception { method noWrapEmbeddedNewlines_ZeroWidth (line 162) | @Test public void noWrapEmbeddedNewlines_ZeroWidth() throws Exception { method wrapEmbeddedNewlines_ZeroWidth (line 173) | @Test public void wrapEmbeddedNewlines_ZeroWidth() throws Exception { method noWrapMultipleNewlines (line 184) | @Test public void noWrapMultipleNewlines() throws Exception { method wrapMultipleNewlines (line 196) | @Test public void wrapMultipleNewlines() throws Exception { FILE: src/test/java/com/squareup/javapoet/MethodSpecTest.java class MethodSpecTest (line 51) | public final class MethodSpecTest { method setUp (line 57) | @Before public void setUp() { method getElement (line 62) | private TypeElement getElement(Class clazz) { method nullAnnotationsAddition (line 66) | @Test public void nullAnnotationsAddition() { method nullTypeVariablesAddition (line 75) | @Test public void nullTypeVariablesAddition() { method nullParametersAddition (line 84) | @Test public void nullParametersAddition() { method nullExceptionsAddition (line 93) | @Test public void nullExceptionsAddition() { class Everything (line 106) | abstract static class Everything { method everything (line 107) | @Deprecated protected abstract Runn... class Generics (line 111) | abstract static class Generics { method run (line 112) | T run(R param) throws V { class HasAnnotation (line 117) | abstract static class HasAnnotation { method toString (line 118) | @Override public abstract String toString(); type Throws (line 121) | interface Throws { method fail (line 122) | void fail() throws R; type ExtendsOthers (line 125) | interface ExtendsOthers extends Callable, Comparable { class FinalClass (line 132) | final class FinalClass { method method (line 133) | void method() { class InvalidOverrideMethods (line 137) | abstract static class InvalidOverrideMethods { method finalMethod (line 138) | final void finalMethod() { method privateMethod (line 141) | private void privateMethod() { method staticMethod (line 144) | static void staticMethod() { method overrideEverything (line 148) | @Test public void overrideEverything() { method overrideGenerics (line 161) | @Test public void overrideGenerics() { method overrideDoesNotCopyOverrideAnnotation (line 174) | @Test public void overrideDoesNotCopyOverrideAnnotation() { method overrideDoesNotCopyDefaultModifier (line 184) | @Test public void overrideDoesNotCopyDefaultModifier() { method overrideExtendsOthersWorksWithActualTypeParameters (line 196) | @Test public void overrideExtendsOthersWorksWithActualTypeParameters() { method overrideFinalClassMethod (line 220) | @Test public void overrideFinalClassMethod() { method overrideInvalidModifiers (line 232) | @Test public void overrideInvalidModifiers() { class AbstractClassWithPrivateAnnotation (line 255) | abstract static class AbstractClassWithPrivateAnnotation { method foo (line 259) | abstract void foo(@PrivateAnnotation final String bar); method overrideDoesNotCopyParameterAnnotations (line 262) | @Test public void overrideDoesNotCopyParameterAnnotations() { method equalsAndHashCode (line 275) | @Test public void equalsAndHashCode() { method withoutParameterJavaDoc (line 292) | @Test public void withoutParameterJavaDoc() { method withParameterJavaDoc (line 306) | @Test public void withParameterJavaDoc() { method withParameterJavaDocAndWithoutMethodJavadoc (line 327) | @Test public void withParameterJavaDocAndWithoutMethodJavadoc() { method duplicateExceptionsIgnored (line 345) | @Test public void duplicateExceptionsIgnored() { method nullIsNotAValidMethodName (line 359) | @Test public void nullIsNotAValidMethodName() { method addModifiersVarargsShouldNotBeNull (line 368) | @Test public void addModifiersVarargsShouldNotBeNull() { method modifyMethodName (line 378) | @Test public void modifyMethodName() { method modifyAnnotations (line 388) | @Test public void modifyAnnotations() { method modifyModifiers (line 397) | @Test public void modifyModifiers() { method modifyParameters (line 405) | @Test public void modifyParameters() { method modifyTypeVariables (line 413) | @Test public void modifyTypeVariables() { method ensureTrailingNewline (line 423) | @Test public void ensureTrailingNewline() { method ensureTrailingNewlineWithExistingNewline (line 435) | @Test public void ensureTrailingNewlineWithExistingNewline() { method controlFlowWithNamedCodeBlocks (line 446) | @Test public void controlFlowWithNamedCodeBlocks() { method doWhileWithNamedCodeBlocks (line 465) | @Test public void doWhileWithNamedCodeBlocks() { method named (line 484) | private static CodeBlock named(String format, Map args){ FILE: src/test/java/com/squareup/javapoet/NameAllocatorTest.java class NameAllocatorTest (line 24) | public final class NameAllocatorTest { method usage (line 26) | @Test public void usage() throws Exception { method nameCollision (line 34) | @Test public void nameCollision() throws Exception { method nameCollisionWithTag (line 41) | @Test public void nameCollisionWithTag() throws Exception { method characterMappingSubstitute (line 51) | @Test public void characterMappingSubstitute() throws Exception { method characterMappingSurrogate (line 56) | @Test public void characterMappingSurrogate() throws Exception { method characterMappingInvalidStartButValidPart (line 61) | @Test public void characterMappingInvalidStartButValidPart() throws Ex... method characterMappingInvalidStartIsInvalidPart (line 67) | @Test public void characterMappingInvalidStartIsInvalidPart() throws E... method javaKeyword (line 72) | @Test public void javaKeyword() throws Exception { method tagReuseForbidden (line 78) | @Test public void tagReuseForbidden() throws Exception { method useBeforeAllocateForbidden (line 89) | @Test public void useBeforeAllocateForbidden() throws Exception { method cloneUsage (line 99) | @Test public void cloneUsage() throws Exception { FILE: src/test/java/com/squareup/javapoet/ParameterSpecTest.java class ParameterSpecTest (line 37) | public class ParameterSpecTest { method setUp (line 42) | @Before public void setUp() { method getElement (line 46) | private TypeElement getElement(Class clazz) { method equalsAndHashCode (line 50) | @Test public void equalsAndHashCode() { method receiverParameterInstanceMethod (line 63) | @Test public void receiverParameterInstanceMethod() { method receiverParameterNestedClass (line 68) | @Test public void receiverParameterNestedClass() { method keywordName (line 73) | @Test public void keywordName() { method nullAnnotationsAddition (line 82) | @Test public void nullAnnotationsAddition() { class VariableElementFieldClass (line 92) | final class VariableElementFieldClass { method fieldVariableElement (line 96) | @Test public void fieldVariableElement() { class VariableElementParameterClass (line 109) | final class VariableElementParameterClass { method foo (line 110) | public void foo(@Nullable final String bar) { method parameterVariableElement (line 114) | @Test public void parameterVariableElement() { method addNonFinalModifier (line 124) | @Test public void addNonFinalModifier() { method modifyAnnotations (line 138) | @Test public void modifyAnnotations() { method modifyModifiers (line 147) | @Test public void modifyModifiers() { FILE: src/test/java/com/squareup/javapoet/TestFiler.java class TestFiler (line 35) | final class TestFiler implements Filer { class Source (line 36) | class Source extends SimpleJavaFileObject { method Source (line 38) | protected Source(Path path) { method openOutputStream (line 42) | @Override public OutputStream openOutputStream() throws IOException { method TestFiler (line 54) | public TestFiler(FileSystem fileSystem, Path fsRoot) { method getOriginatingElements (line 61) | public Set getOriginatingElements(Path path) { method createSourceFile (line 65) | @Override public JavaFileObject createSourceFile( method createClassFile (line 73) | @Override public JavaFileObject createClassFile(CharSequence name, Ele... method createResource (line 78) | @Override public FileObject createResource(JavaFileManager.Location lo... method getResource (line 83) | @Override public FileObject getResource(JavaFileManager.Location locat... FILE: src/test/java/com/squareup/javapoet/TestUtil.java class TestUtil (line 8) | final class TestUtil { method findFirst (line 9) | static E findFirst(Collection elements, String ... FILE: src/test/java/com/squareup/javapoet/TypeNameTest.java class TypeNameTest (line 32) | public class TypeNameTest { method generic (line 36) | protected > E generic(E[] values) { class TestGeneric (line 40) | protected static class TestGeneric { class Inner (line 41) | class Inner {} class InnerGeneric (line 43) | class InnerGeneric {} class NestedNonGeneric (line 45) | static class NestedNonGeneric {} method testGenericStringInner (line 48) | protected static TestGeneric.Inner testGenericStringInner() { method testGenericIntInner (line 52) | protected static TestGeneric.Inner testGenericIntInner() { method testGenericInnerLong (line 56) | protected static TestGeneric.InnerGeneric testGenericInne... method testGenericInnerInt (line 60) | protected static TestGeneric.InnerGeneric testGenericI... method testNestedNonGeneric (line 64) | protected static TestGeneric.NestedNonGeneric testNestedNonGeneric() { method genericType (line 68) | @Test public void genericType() throws Exception { method innerClassInGenericType (line 79) | @Test public void innerClassInGenericType() throws Exception { method innerGenericInGenericType (line 91) | @Test public void innerGenericInGenericType() throws Exception { method innerStaticInGenericType (line 103) | @Test public void innerStaticInGenericType() throws Exception { method equalsAndHashCodePrimitive (line 113) | @Test public void equalsAndHashCodePrimitive() { method equalsAndHashCodeArrayTypeName (line 125) | @Test public void equalsAndHashCodeArrayTypeName() { method equalsAndHashCodeClassName (line 132) | @Test public void equalsAndHashCodeClassName() { method equalsAndHashCodeParameterizedTypeName (line 139) | @Test public void equalsAndHashCodeParameterizedTypeName() { method equalsAndHashCodeTypeVariableName (line 148) | @Test public void equalsAndHashCodeTypeVariableName() { method equalsAndHashCodeWildcardTypeName (line 156) | @Test public void equalsAndHashCodeWildcardTypeName() { method isPrimitive (line 165) | @Test public void isPrimitive() throws Exception { method isBoxedPrimitive (line 173) | @Test public void isBoxedPrimitive() throws Exception { method canBoxAnnotatedPrimitive (line 183) | @Test public void canBoxAnnotatedPrimitive() throws Exception { method canUnboxAnnotatedPrimitive (line 188) | @Test public void canUnboxAnnotatedPrimitive() throws Exception { method assertEqualsHashCodeAndToString (line 193) | private void assertEqualsHashCodeAndToString(TypeName a, TypeName b) { FILE: src/test/java/com/squareup/javapoet/TypeSpecTest.java class TypeSpecTest (line 49) | @RunWith(JUnit4.class) method getElement (line 56) | private TypeElement getElement(Class clazz) { method basic (line 60) | @Test public void basic() throws Exception { method interestingTypes (line 84) | @Test public void interestingTypes() throws Exception { method anonymousInnerClass (line 112) | @Test public void anonymousInnerClass() throws Exception { method annotatedParameters (line 172) | @Test public void annotatedParameters() throws Exception { method annotationsAndJavaLangTypes (line 212) | @Test public void annotationsAndJavaLangTypes() throws Exception { method retrofitStyleInterface (line 230) | @Test public void retrofitStyleInterface() throws Exception { method annotatedField (line 288) | @Test public void annotatedField() throws Exception { method annotatedClass (line 307) | @Test public void annotatedClass() throws Exception { method addAnnotationDisallowsNull (line 329) | @Test public void addAnnotationDisallowsNull() { method enumWithSubclassing (line 350) | @Test public void enumWithSubclassing() throws Exception { method enumsMayDefineAbstractMethods (line 409) | @Test public void enumsMayDefineAbstractMethods() throws Exception { method noEnumConstants (line 438) | @Test public void noEnumConstants() throws Exception { method onlyEnumsMayHaveEnumConstants (line 453) | @Test public void onlyEnumsMayHaveEnumConstants() throws Exception { method enumWithMembersButNoConstructorCall (line 463) | @Test public void enumWithMembersButNoConstructorCall() throws Excepti... method enumWithAnnotatedValues (line 491) | @Test public void enumWithAnnotatedValues() throws Exception { method methodThrows (line 515) | @Test public void methodThrows() throws Exception { method typeVariables (line 552) | @Test public void typeVariables() throws Exception { method typeVariableWithBounds (line 607) | @Test public void typeVariableWithBounds() { method classImplementsExtends (line 630) | @Test public void classImplementsExtends() throws Exception { method classImplementsNestedClass (line 651) | @Test public void classImplementsNestedClass() throws Exception { method enumImplements (line 674) | @Test public void enumImplements() throws Exception { method interfaceExtends (line 694) | @Test public void interfaceExtends() throws Exception { method nestedClasses (line 710) | @Test public void nestedClasses() throws Exception { method annotation (line 783) | @Test public void annotation() throws Exception { method innerAnnotationInAnnotationDeclaration (line 802) | @Test public void innerAnnotationInAnnotationDeclaration() throws Exce... method annotationWithFields (line 822) | @Test public void annotationWithFields() { method classCannotHaveDefaultValueForMethod (line 841) | @Test method classCannotHaveDefaultMethods (line 856) | @Test method interfaceStaticMethods (line 871) | @Test method interfaceDefaultMethods (line 892) | @Test method invalidInterfacePrivateMethods (line 913) | @Test method interfacePrivateMethods (line 951) | @Test method referencedAndDeclaredSimpleNamesConflict (line 990) | @Test public void referencedAndDeclaredSimpleNamesConflict() throws Ex... method simpleNamesConflictInThisAndOtherPackage (line 1053) | @Test public void simpleNamesConflictInThisAndOtherPackage() throws Ex... method simpleNameConflictsWithTypeVariable (line 1072) | @Test public void simpleNameConflictsWithTypeVariable() { method originatingElementsIncludesThoseOfNestedTypes (line 1140) | @Test public void originatingElementsIncludesThoseOfNestedTypes() { method intersectionType (line 1152) | @Test public void intersectionType() { method arrayType (line 1174) | @Test public void arrayType() { method javadoc (line 1186) | @Test public void javadoc() { method annotationsInAnnotations (line 1229) | @Test public void annotationsInAnnotations() throws Exception { method varargs (line 1261) | @Test public void varargs() throws Exception { method codeBlocks (line 1280) | @Test public void codeBlocks() throws Exception { method indexedElseIf (line 1351) | @Test public void indexedElseIf() throws Exception { method elseIf (line 1377) | @Test public void elseIf() throws Exception { method doWhile (line 1403) | @Test public void doWhile() throws Exception { method inlineIndent (line 1425) | @Test public void inlineIndent() throws Exception { method defaultModifiersForInterfaceMembers (line 1445) | @Test public void defaultModifiersForInterfaceMembers() throws Excepti... method defaultModifiersForMemberInterfacesAndEnums (line 1473) | @Test public void defaultModifiersForMemberInterfacesAndEnums() throws... method membersOrdering (line 1502) | @Test public void membersOrdering() throws Exception { method nativeMethods (line 1559) | @Test public void nativeMethods() throws Exception { method nullStringLiteral (line 1592) | @Test public void nullStringLiteral() throws Exception { method annotationToString (line 1608) | @Test public void annotationToString() throws Exception { method codeBlockToString (line 1615) | @Test public void codeBlockToString() throws Exception { method codeBlockAddStatementOfCodeBlockToString (line 1622) | @Test public void codeBlockAddStatementOfCodeBlockToString() throws Ex... method fieldToString (line 1628) | @Test public void fieldToString() throws Exception { method methodToString (line 1636) | @Test public void methodToString() throws Exception { method constructorToString (line 1650) | @Test public void constructorToString() throws Exception { method parameterToString (line 1662) | @Test public void parameterToString() throws Exception { method classToString (line 1671) | @Test public void classToString() throws Exception { method anonymousClassToString (line 1679) | @Test public void anonymousClassToString() throws Exception { method interfaceClassToString (line 1695) | @Test public void interfaceClassToString() throws Exception { method annotationDeclarationToString (line 1703) | @Test public void annotationDeclarationToString() throws Exception { method toString (line 1711) | private String toString(TypeSpec typeSpec) { method multilineStatement (line 1715) | @Test public void multilineStatement() throws Exception { method multilineStatementWithAnonymousClass (line 1743) | @Test public void multilineStatementWithAnonymousClass() throws Except... method multilineStrings (line 1804) | @Test public void multilineStrings() throws Exception { method doubleFieldInitialization (line 1823) | @Test public void doubleFieldInitialization() { method nullAnnotationsAddition (line 1843) | @Test public void nullAnnotationsAddition() { method multipleAnnotationAddition (line 1853) | @Test public void multipleAnnotationAddition() { method nullFieldsAddition (line 1873) | @Test public void nullFieldsAddition() { method multipleFieldAddition (line 1883) | @Test public void multipleFieldAddition() { method nullMethodsAddition (line 1901) | @Test public void nullMethodsAddition() { method multipleMethodAddition (line 1911) | @Test public void multipleMethodAddition() { method nullSuperinterfacesAddition (line 1943) | @Test public void nullSuperinterfacesAddition() { method nullSingleSuperinterfaceAddition (line 1953) | @Test public void nullSingleSuperinterfaceAddition() { method nullInSuperinterfaceIterableAddition (line 1963) | @Test public void nullInSuperinterfaceIterableAddition() { method multipleSuperinterfaceAddition (line 1977) | @Test public void multipleSuperinterfaceAddition() { method nullModifiersAddition (line 1993) | @Test public void nullModifiersAddition() { method nullTypeVariablesAddition (line 2003) | @Test public void nullTypeVariablesAddition() { method multipleTypeVariableAddition (line 2013) | @Test public void multipleTypeVariableAddition() { method nullTypesAddition (line 2028) | @Test public void nullTypesAddition() { method multipleTypeAddition (line 2038) | @Test public void multipleTypeAddition() { method tryCatch (line 2056) | @Test public void tryCatch() { method ifElse (line 2080) | @Test public void ifElse() { method literalFromAnything (line 2108) | @Test public void literalFromAnything() { method nameFromCharSequence (line 2117) | @Test public void nameFromCharSequence() { method nameFromField (line 2121) | @Test public void nameFromField() { method nameFromParameter (line 2126) | @Test public void nameFromParameter() { method nameFromMethod (line 2131) | @Test public void nameFromMethod() { method nameFromType (line 2139) | @Test public void nameFromType() { method nameFromUnsupportedType (line 2144) | @Test public void nameFromUnsupportedType() { method stringFromAnything (line 2153) | @Test public void stringFromAnything() { method stringFromNull (line 2162) | @Test public void stringFromNull() { method typeFromTypeName (line 2166) | @Test public void typeFromTypeName() { method typeFromTypeMirror (line 2171) | @Test public void typeFromTypeMirror() { method typeFromTypeElement (line 2176) | @Test public void typeFromTypeElement() { method typeFromReflectType (line 2181) | @Test public void typeFromReflectType() { method typeFromUnsupportedType (line 2185) | @Test public void typeFromUnsupportedType() { method tooFewArguments (line 2194) | @Test public void tooFewArguments() { method unusedArgumentsRelative (line 2203) | @Test public void unusedArgumentsRelative() { method unusedArgumentsIndexed (line 2212) | @Test public void unusedArgumentsIndexed() { method superClassOnlyValidForClasses (line 2233) | @Test public void superClassOnlyValidForClasses() { method invalidSuperClass (line 2251) | @Test public void invalidSuperClass() { method staticCodeBlock (line 2267) | @Test public void staticCodeBlock() { method initializerBlockInRightPlace (line 2303) | @Test public void initializerBlockInRightPlace() { method initializersToBuilder (line 2350) | @Test public void initializersToBuilder() { method initializerBlockUnsupportedExceptionOnInterface (line 2424) | @Test public void initializerBlockUnsupportedExceptionOnInterface() { method initializerBlockUnsupportedExceptionOnAnnotation (line 2433) | @Test public void initializerBlockUnsupportedExceptionOnAnnotation() { method lineWrapping (line 2442) | @Test public void lineWrapping() { method lineWrappingWithZeroWidthSpace (line 2471) | @Test public void lineWrappingWithZeroWidthSpace() { method equalsAndHashCode (line 2493) | @Test public void equalsAndHashCode() { method classNameFactories (line 2512) | @Test public void classNameFactories() { method modifyAnnotations (line 2520) | @Test method modifyModifiers (line 2531) | @Test method modifyFields (line 2540) | @Test method modifyTypeVariables (line 2549) | @Test method modifySuperinterfaces (line 2561) | @Test method modifyMethods (line 2570) | @Test method modifyTypes (line 2579) | @Test method modifyEnumConstants (line 2588) | @Test method modifyOriginatingElements (line 2599) | @Test method javadocWithTrailingLineDoesNotAddAnother (line 2608) | @Test public void javadocWithTrailingLineDoesNotAddAnother() { method javadocEnsuresTrailingLine (line 2623) | @Test public void javadocEnsuresTrailingLine() { FILE: src/test/java/com/squareup/javapoet/TypesEclipseTest.java class TypesEclipseTest (line 49) | @RunWith(JUnit4.class) class CompilationRule (line 60) | public static final class CompilationRule implements TestRule { method apply (line 64) | @Override method getElements (line 115) | public Elements getElements() { method getTypes (line 125) | public Types getTypes() { method compile (line 130) | static private boolean compile(Iterable process... method getElements (line 149) | @Override method getTypes (line 154) | @Override FILE: src/test/java/com/squareup/javapoet/TypesTest.java class TypesTest (line 27) | @RunWith(JUnit4.class) method getElements (line 31) | @Override method getTypes (line 36) | @Override FILE: src/test/java/com/squareup/javapoet/UtilTest.java class UtilTest (line 22) | public class UtilTest { method characterLiteral (line 23) | @Test public void characterLiteral() { method stringLiteral (line 59) | @Test public void stringLiteral() { method stringLiteral (line 68) | void stringLiteral(String string) { method stringLiteral (line 72) | void stringLiteral(String expected, String value, String indent) {