- emitAnnotation(String) - Method in class com.squareup.javawriter.JavaWriter
-
Equivalent to annotation(annotation, emptyMap())
.
- emitAnnotation(Class<? extends Annotation>) - Method in class com.squareup.javawriter.JavaWriter
-
Equivalent to annotation(annotationType.getName(), emptyMap())
.
- emitAnnotation(Class<? extends Annotation>, Object) - Method in class com.squareup.javawriter.JavaWriter
-
Annotates the next element with annotationType
and a value
.
- emitAnnotation(String, Object) - Method in class com.squareup.javawriter.JavaWriter
-
Annotates the next element with annotation
and a value
.
- emitAnnotation(Class<? extends Annotation>, Map<String, ?>) - Method in class com.squareup.javawriter.JavaWriter
-
Equivalent to annotation(annotationType.getName(), attributes)
.
- emitAnnotation(String, Map<String, ?>) - Method in class com.squareup.javawriter.JavaWriter
-
Annotates the next element with annotation
and attributes
.
- emitAnnotationValue(Object) - Method in class com.squareup.javawriter.JavaWriter
-
Writes a single annotation value.
- emitCompressedType(String) - Method in class com.squareup.javawriter.JavaWriter
-
Emits a name like java.lang.String
or java.util.List<java.lang.String>
,
compressing it with imports if possible.
- emitEmptyLine() - Method in class com.squareup.javawriter.JavaWriter
-
- emitEnumValue(String) - Method in class com.squareup.javawriter.JavaWriter
-
- emitEnumValue(String, boolean) - Method in class com.squareup.javawriter.JavaWriter
-
A simple switch to emit the proper enum depending if its last causing it to be terminated
by a semi-colon (;
).
- emitEnumValues(Iterable<String>) - Method in class com.squareup.javawriter.JavaWriter
-
Emit a list of enum values followed by a semi-colon (;
).
- emitField(String, String) - Method in class com.squareup.javawriter.JavaWriter
-
Emits a field declaration.
- emitField(String, String, Set<Modifier>) - Method in class com.squareup.javawriter.JavaWriter
-
Emits a field declaration.
- emitField(String, String, Set<Modifier>, String) - Method in class com.squareup.javawriter.JavaWriter
-
Emits a field declaration.
- emitImports(String...) - Method in class com.squareup.javawriter.JavaWriter
-
Emit an import for each type
provided.
- emitImports(Class<?>...) - Method in class com.squareup.javawriter.JavaWriter
-
Emit an import for each type
provided.
- emitImports(Collection<String>) - Method in class com.squareup.javawriter.JavaWriter
-
Emit an import for each type
in the provided Collection
.
- emitJavadoc(String, Object...) - Method in class com.squareup.javawriter.JavaWriter
-
Emits some Javadoc comments with line separated by \n
.
- emitLastEnumValue(String) - Method in class com.squareup.javawriter.JavaWriter
-
- emitModifiers(Set<Modifier>) - Method in class com.squareup.javawriter.JavaWriter
-
Emits the modifiers to the writer.
- emitPackage(String) - Method in class com.squareup.javawriter.JavaWriter
-
Emit a package declaration and empty line.
- emitSingleLineComment(String, Object...) - Method in class com.squareup.javawriter.JavaWriter
-
Emits a single line comment.
- emitStatement(String, Object...) - Method in class com.squareup.javawriter.JavaWriter
-
- emitStaticImports(String...) - Method in class com.squareup.javawriter.JavaWriter
-
Emit a static import for each type
provided.
- emitStaticImports(Collection<String>) - Method in class com.squareup.javawriter.JavaWriter
-
Emit a static import for each type
in the provided Collection
.
- endConstructor() - Method in class com.squareup.javawriter.JavaWriter
-
Completes the current constructor declaration.
- endControlFlow() - Method in class com.squareup.javawriter.JavaWriter
-
- endControlFlow(String) - Method in class com.squareup.javawriter.JavaWriter
-
- endControlFlow(String, Object...) - Method in class com.squareup.javawriter.JavaWriter
-
- endInitializer() - Method in class com.squareup.javawriter.JavaWriter
-
Ends the current initializer declaration.
- endMethod() - Method in class com.squareup.javawriter.JavaWriter
-
Completes the current method declaration.
- endType() - Method in class com.squareup.javawriter.JavaWriter
-
Completes the current type declaration.
- equals(Object) - Method in class com.squareup.javawriter.StringLiteral
-