B C E F G H I J L N R S T V
All Classes All Packages
All Classes All Packages
All Classes All Packages
B
- beginConstructor(Set<Modifier>, String...) - Method in class com.squareup.javawriter.JavaWriter
- beginConstructor(Set<Modifier>, List<String>, List<String>) - Method in class com.squareup.javawriter.JavaWriter
- beginControlFlow(String) - Method in class com.squareup.javawriter.JavaWriter
- beginControlFlow(String, Object...) - Method in class com.squareup.javawriter.JavaWriter
- beginInitializer(boolean) - Method in class com.squareup.javawriter.JavaWriter
-
Emits an initializer declaration.
- beginMethod(String, String, Set<Modifier>, String...) - Method in class com.squareup.javawriter.JavaWriter
-
Emit a method declaration.
- beginMethod(String, String, Set<Modifier>, List<String>, List<String>) - Method in class com.squareup.javawriter.JavaWriter
-
Emit a method declaration.
- beginType(String, String) - Method in class com.squareup.javawriter.JavaWriter
-
Emits a type declaration.
- beginType(String, String, Set<Modifier>) - Method in class com.squareup.javawriter.JavaWriter
-
Emits a type declaration.
- beginType(String, String, Set<Modifier>, String, String...) - Method in class com.squareup.javawriter.JavaWriter
-
Emits a type declaration.
C
- close() - Method in class com.squareup.javawriter.JavaWriter
- com.squareup.javawriter - package com.squareup.javawriter
- compressType(String) - Method in class com.squareup.javawriter.JavaWriter
-
Try to compress a fully-qualified class name to only the class name.
E
- 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 avalue
. - emitAnnotation(Class<? extends Annotation>, Map<String, ?>) - Method in class com.squareup.javawriter.JavaWriter
-
Equivalent to
annotation(annotationType.getName(), attributes)
. - emitAnnotation(String) - Method in class com.squareup.javawriter.JavaWriter
-
Equivalent to
annotation(annotation, emptyMap())
. - emitAnnotation(String, Object) - Method in class com.squareup.javawriter.JavaWriter
-
Annotates the next element with
annotation
and avalue
. - emitAnnotation(String, Map<String, ?>) - Method in class com.squareup.javawriter.JavaWriter
-
Annotates the next element with
annotation
andattributes
. - 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(Class<?>...) - Method in class com.squareup.javawriter.JavaWriter
-
Emit an import for each
type
provided. - emitImports(String...) - 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 providedCollection
. - emitJavadoc(String, Object...) - Method in class com.squareup.javawriter.JavaWriter
-
Emits some Javadoc comments with line separated by
\n
. - 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 providedCollection
. - 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
F
- forValue(String) - Static method in class com.squareup.javawriter.StringLiteral
-
Returns a new
StringLiteral
instance for the intended value of the literal.
G
- getIndent() - Method in class com.squareup.javawriter.JavaWriter
H
- hashCode() - Method in class com.squareup.javawriter.StringLiteral
I
- isCompressingTypes() - Method in class com.squareup.javawriter.JavaWriter
J
- JavaWriter - Class in com.squareup.javawriter
-
A utility class which aids in generating Java source files.
- JavaWriter(Writer) - Constructor for class com.squareup.javawriter.JavaWriter
L
- literal() - Method in class com.squareup.javawriter.StringLiteral
N
- nextControlFlow(String) - Method in class com.squareup.javawriter.JavaWriter
- nextControlFlow(String, Object...) - Method in class com.squareup.javawriter.JavaWriter
R
- rawType(String) - Static method in class com.squareup.javawriter.JavaWriter
-
Build a string representation of the raw type for a (optionally generic) type.
S
- setCompressingTypes(boolean) - Method in class com.squareup.javawriter.JavaWriter
- setIndent(String) - Method in class com.squareup.javawriter.JavaWriter
- stringLiteral(String) - Static method in class com.squareup.javawriter.JavaWriter
-
Deprecated.use
StringLiteral
and itsStringLiteral.literal()
method instead. - StringLiteral - Class in com.squareup.javawriter
-
Represents a string literal as found in Java source code.
T
- toString() - Method in class com.squareup.javawriter.StringLiteral
- type(Class<?>, String...) - Static method in class com.squareup.javawriter.JavaWriter
-
Build a string representation of a type and optionally its generic type arguments.
V
- value() - Method in class com.squareup.javawriter.StringLiteral
All Classes All Packages