B C E J N S

B

beginControlFlow(String) - Method in class com.squareup.java.JavaWriter
 
beginMethod(String, String, int, String...) - Method in class com.squareup.java.JavaWriter
Emit a method declaration.
beginType(String, String, int) - Method in class com.squareup.java.JavaWriter
Emits a type declaration.
beginType(String, String, int, String, String...) - Method in class com.squareup.java.JavaWriter
Emits a type declaration.

C

close() - Method in class com.squareup.java.JavaWriter
 
com.squareup.java - package com.squareup.java
 
compressType(String) - Method in class com.squareup.java.JavaWriter
Try to compress a fully-qualified class name to only the class name.

E

emitAnnotation(String) - Method in class com.squareup.java.JavaWriter
Equivalent to annotation(annotation, emptyMap()).
emitAnnotation(Class<? extends Annotation>) - Method in class com.squareup.java.JavaWriter
Equivalent to annotation(annotationType.getName(), emptyMap()).
emitAnnotation(Class<? extends Annotation>, Object) - Method in class com.squareup.java.JavaWriter
Annotates the next element with annotationType and a value.
emitAnnotation(String, Object) - Method in class com.squareup.java.JavaWriter
Annotates the next element with annotation and a value.
emitAnnotation(Class<? extends Annotation>, Map<String, ?>) - Method in class com.squareup.java.JavaWriter
Equivalent to annotation(annotationType.getName(), attributes).
emitAnnotation(String, Map<String, ?>) - Method in class com.squareup.java.JavaWriter
Annotates the next element with annotation and attributes.
emitEmptyLine() - Method in class com.squareup.java.JavaWriter
 
emitEndOfLineComment(String, Object...) - Method in class com.squareup.java.JavaWriter
Emits some Javadoc comments.
emitEnumValue(String) - Method in class com.squareup.java.JavaWriter
 
emitField(String, String, int) - Method in class com.squareup.java.JavaWriter
Emits a field declaration.
emitField(String, String, int, String) - Method in class com.squareup.java.JavaWriter
 
emitImports(String...) - Method in class com.squareup.java.JavaWriter
Emit an import for each type provided.
emitImports(Collection<String>) - Method in class com.squareup.java.JavaWriter
Emit an import for each type in the provided Collection.
emitJavadoc(String, Object...) - Method in class com.squareup.java.JavaWriter
Emits some Javadoc comments with line separated by \n.
emitPackage(String) - Method in class com.squareup.java.JavaWriter
Emit a package declaration and empty line.
emitStatement(String, Object...) - Method in class com.squareup.java.JavaWriter
 
endControlFlow() - Method in class com.squareup.java.JavaWriter
 
endControlFlow(String) - Method in class com.squareup.java.JavaWriter
 
endMethod() - Method in class com.squareup.java.JavaWriter
Completes the current method declaration.
endType() - Method in class com.squareup.java.JavaWriter
Completes the current type declaration.

J

JavaWriter - Class in com.squareup.java
A utility class which aids in generating Java source files.
JavaWriter(Writer) - Constructor for class com.squareup.java.JavaWriter
 

N

nextControlFlow(String) - Method in class com.squareup.java.JavaWriter
 

S

stringLiteral(String) - Static method in class com.squareup.java.JavaWriter
Returns the string literal representing data, including wrapping quotes.

B C E J N S

Copyright © 2013 Square, Inc.. All Rights Reserved.