META-INF/
META-INF/MANIFEST.MF
com/
com/squareup/
com/squareup/javawriter/
com/squareup/javawriter/JavaWriter$Scope.classJavaWriter.java
package com.squareup.javawriter
final com.squareup.javawriter.JavaWriter$Scope extends java.lang.Enum {
public static final com.squareup.javawriter.JavaWriter$Scope TYPE_DECLARATION
public static final com.squareup.javawriter.JavaWriter$Scope INTERFACE_DECLARATION
public static final com.squareup.javawriter.JavaWriter$Scope ABSTRACT_METHOD
public static final com.squareup.javawriter.JavaWriter$Scope NON_ABSTRACT_METHOD
public static final com.squareup.javawriter.JavaWriter$Scope CONSTRUCTOR
public static final com.squareup.javawriter.JavaWriter$Scope CONTROL_FLOW
public static final com.squareup.javawriter.JavaWriter$Scope ANNOTATION_ATTRIBUTE
public static final com.squareup.javawriter.JavaWriter$Scope ANNOTATION_ARRAY_VALUE
public static final com.squareup.javawriter.JavaWriter$Scope INITIALIZER
private static final com.squareup.javawriter.JavaWriter$Scope[] $VALUES
public static com.squareup.javawriter.JavaWriter$Scope[] values ()
public static com.squareup.javawriter.JavaWriter$Scope valueOf (java.lang.String)
String name
private void (java.lang.String, int)
static void ()
}
com/squareup/javawriter/JavaWriter.classJavaWriter.java
package com.squareup.javawriter
public com.squareup.javawriter.JavaWriter extends java.lang.Object implements java.io.Closeable {
private static final java.util.regex.Pattern TYPE_PATTERN
private static final int MAX_SINGLE_LINE_ATTRIBUTES
private static final String INDENT
private final java.util.Map importedTypes
private String packagePrefix
private final java.util.Deque scopes
private final java.util.Deque types
private final java.io.Writer out
private boolean isCompressingTypes
private String indent
private static final java.util.EnumSet METHOD_SCOPES
public void (java.io.Writer)
java.io.Writer out
public void setCompressingTypes (boolean)
boolean isCompressingTypes
public boolean isCompressingTypes ()
public void setIndent (java.lang.String)
String indent
public java.lang.String getIndent ()
public com.squareup.javawriter.JavaWriter emitPackage (java.lang.String) throws java.io.IOException
String packageName
public transient com.squareup.javawriter.JavaWriter emitImports (java.lang.String[]) throws java.io.IOException
String[] types
public transient com.squareup.javawriter.JavaWriter emitImports (java.lang.Class[]) throws java.io.IOException
Class classToImport
Class[] types
java.util.List classNames
public com.squareup.javawriter.JavaWriter emitImports (java.util.Collection) throws java.io.IOException
java.util.regex.Matcher matcher
String type
java.util.Collection types
public transient com.squareup.javawriter.JavaWriter emitStaticImports (java.lang.String[]) throws java.io.IOException
String[] types
public com.squareup.javawriter.JavaWriter emitStaticImports (java.util.Collection) throws java.io.IOException
java.util.regex.Matcher matcher
String type
java.util.Collection types
private com.squareup.javawriter.JavaWriter emitCompressedType (java.lang.String) throws java.io.IOException
String type
public java.lang.String compressType (java.lang.String)
String compressed
boolean found
int typeStart
String name
String imported
String type
StringBuilder sb
java.util.regex.Matcher m
int pos
private static boolean isClassInPackage (java.lang.String, java.lang.String)
String name
String packagePrefix
private boolean isAmbiguous (java.lang.String)
String compressed
public com.squareup.javawriter.JavaWriter beginInitializer (boolean) throws java.io.IOException
boolean isStatic
public com.squareup.javawriter.JavaWriter endInitializer () throws java.io.IOException
public com.squareup.javawriter.JavaWriter beginType (java.lang.String, java.lang.String) throws java.io.IOException
String type
String kind
public com.squareup.javawriter.JavaWriter beginType (java.lang.String, java.lang.String, java.util.Set) throws java.io.IOException
String type
String kind
java.util.Set modifiers
public transient com.squareup.javawriter.JavaWriter beginType (java.lang.String, java.lang.String, java.util.Set, java.lang.String, java.lang.String[]) throws java.io.IOException
int i
String type
String kind
java.util.Set modifiers
String extendsType
String[] implementsTypes
public com.squareup.javawriter.JavaWriter endType () throws java.io.IOException
public com.squareup.javawriter.JavaWriter emitField (java.lang.String, java.lang.String) throws java.io.IOException
String type
String name
public com.squareup.javawriter.JavaWriter emitField (java.lang.String, java.lang.String, java.util.Set) throws java.io.IOException
String type
String name
java.util.Set modifiers
public com.squareup.javawriter.JavaWriter emitField (java.lang.String, java.lang.String, java.util.Set, java.lang.String) throws java.io.IOException
int i
String[] lines
String type
String name
java.util.Set modifiers
String initialValue
public transient com.squareup.javawriter.JavaWriter beginMethod (java.lang.String, java.lang.String, java.util.Set, java.lang.String[]) throws java.io.IOException
String returnType
String name
java.util.Set modifiers
String[] parameters
public com.squareup.javawriter.JavaWriter beginMethod (java.lang.String, java.lang.String, java.util.Set, java.util.List, java.util.List) throws java.io.IOException
int p
int i
String returnType
String name
java.util.Set modifiers
java.util.List parameters
java.util.List throwsTypes
public transient com.squareup.javawriter.JavaWriter beginConstructor (java.util.Set, java.lang.String[]) throws java.io.IOException
java.util.Set modifiers
String[] parameters
public com.squareup.javawriter.JavaWriter beginConstructor (java.util.Set, java.util.List, java.util.List) throws java.io.IOException
java.util.Set modifiers
java.util.List parameters
java.util.List throwsTypes
public transient com.squareup.javawriter.JavaWriter emitJavadoc (java.lang.String, java.lang.Object[]) throws java.io.IOException
String line
String javadoc
Object[] params
String formatted
public transient com.squareup.javawriter.JavaWriter emitSingleLineComment (java.lang.String, java.lang.Object[]) throws java.io.IOException
String comment
Object[] args
public com.squareup.javawriter.JavaWriter emitEmptyLine () throws java.io.IOException
public com.squareup.javawriter.JavaWriter emitEnumValue (java.lang.String) throws java.io.IOException
String name
public com.squareup.javawriter.JavaWriter emitEnumValue (java.lang.String, boolean) throws java.io.IOException
String name
boolean isLast
private com.squareup.javawriter.JavaWriter emitLastEnumValue (java.lang.String) throws java.io.IOException
String name
public com.squareup.javawriter.JavaWriter emitEnumValues (java.lang.Iterable) throws java.io.IOException
String name
Iterable names
java.util.Iterator iterator
public com.squareup.javawriter.JavaWriter emitAnnotation (java.lang.String) throws java.io.IOException
String annotation
public com.squareup.javawriter.JavaWriter emitAnnotation (java.lang.Class) throws java.io.IOException
Class annotationType
public com.squareup.javawriter.JavaWriter emitAnnotation (java.lang.Class, java.lang.Object) throws java.io.IOException
Class annotationType
Object value
public com.squareup.javawriter.JavaWriter emitAnnotation (java.lang.String, java.lang.Object) throws java.io.IOException
String annotation
Object value
public com.squareup.javawriter.JavaWriter emitAnnotation (java.lang.Class, java.util.Map) throws java.io.IOException
Class annotationType
java.util.Map attributes
public com.squareup.javawriter.JavaWriter emitAnnotation (java.lang.String, java.util.Map) throws java.io.IOException
Object value
java.util.Map$Entry entry
java.util.Map$Entry onlyEntry
boolean split
String separator
String annotation
java.util.Map attributes
private boolean containsArray (java.util.Collection)
Object value
java.util.Collection values
private com.squareup.javawriter.JavaWriter emitAnnotationValue (java.lang.Object) throws java.io.IOException
Object o
boolean firstValue
Object value
public transient com.squareup.javawriter.JavaWriter emitStatement (java.lang.String, java.lang.Object[]) throws java.io.IOException
int i
String pattern
Object[] args
String[] lines
public transient com.squareup.javawriter.JavaWriter beginControlFlow (java.lang.String, java.lang.Object[]) throws java.io.IOException
String controlFlow
Object[] args
public transient com.squareup.javawriter.JavaWriter nextControlFlow (java.lang.String, java.lang.Object[]) throws java.io.IOException
String controlFlow
Object[] args
public com.squareup.javawriter.JavaWriter endControlFlow () throws java.io.IOException
public transient com.squareup.javawriter.JavaWriter endControlFlow (java.lang.String, java.lang.Object[]) throws java.io.IOException
String controlFlow
Object[] args
public com.squareup.javawriter.JavaWriter endMethod () throws java.io.IOException
com.squareup.javawriter.JavaWriter$Scope popped
public com.squareup.javawriter.JavaWriter endConstructor () throws java.io.IOException
public static java.lang.String stringLiteral (java.lang.String)
char c
int i
String data
StringBuilder result
public static transient java.lang.String type (java.lang.Class, java.lang.String[])
int i
Class raw
String[] parameters
StringBuilder result
public static java.lang.String rawType (java.lang.String)
String type
int lessThanIndex
public void close () throws java.io.IOException
private void emitModifiers (java.util.Set) throws java.io.IOException
javax.lang.model.element.Modifier modifier
java.util.Set modifiers
private void indent () throws java.io.IOException
int i
int count
private void hangingIndent () throws java.io.IOException
int i
int count
private void checkInMethod ()
private transient void popScope (com.squareup.javawriter.JavaWriter$Scope[])
com.squareup.javawriter.JavaWriter$Scope[] expected
static void ()
}
META-INF/maven/
META-INF/maven/com.squareup/
META-INF/maven/com.squareup/javawriter/
META-INF/maven/com.squareup/javawriter/pom.xml
META-INF/maven/com.squareup/javawriter/pom.properties