public final class JavaWriter extends AbstractCodeWriter<JavaWriter>
Constructor and Description |
---|
JavaWriter(Appendable appendable) |
public JavaWriter(Appendable appendable)
public JavaWriter annotation(Annotation annotation) throws IOException
IOException
public JavaWriter annotation(Class<? extends Annotation> annotation) throws IOException
IOException
public JavaWriter beginClass(Type type) throws IOException
IOException
public JavaWriter beginClass(Type type, Type superClass, Type... interfaces) throws IOException
IOException
public <T> JavaWriter beginConstructor(Collection<T> parameters, com.google.common.base.Function<T,Parameter> transformer) throws IOException
IOException
public JavaWriter beginConstructor(Parameter... parameters) throws IOException
IOException
public JavaWriter beginInterface(Type type, Type... interfaces) throws IOException
IOException
public <T> JavaWriter beginPublicMethod(Type returnType, String methodName, Collection<T> parameters, com.google.common.base.Function<T,Parameter> transformer) throws IOException
IOException
public JavaWriter beginPublicMethod(Type returnType, String methodName, Parameter... args) throws IOException
IOException
public <T> JavaWriter beginStaticMethod(Type returnType, String methodName, Collection<T> parameters, com.google.common.base.Function<T,Parameter> transformer) throws IOException
IOException
public JavaWriter beginStaticMethod(Type returnType, String methodName, Parameter... args) throws IOException
IOException
public JavaWriter end() throws IOException
IOException
public JavaWriter field(Type type, String name) throws IOException
IOException
public JavaWriter imports(Class<?>... imports) throws IOException
IOException
public JavaWriter imports(Package... imports) throws IOException
IOException
public JavaWriter importClasses(String... imports) throws IOException
IOException
public JavaWriter importPackages(String... imports) throws IOException
IOException
public JavaWriter javadoc(String... lines) throws IOException
IOException
public JavaWriter packageDecl(String packageName) throws IOException
IOException
public JavaWriter privateField(Type type, String name) throws IOException
IOException
public JavaWriter privateFinal(Type type, String name) throws IOException
IOException
public JavaWriter privateFinal(Type type, String name, String value) throws IOException
IOException
public JavaWriter privateStaticFinal(Type type, String name, String value) throws IOException
IOException
public JavaWriter protectedField(Type type, String name) throws IOException
IOException
public JavaWriter protectedFinal(Type type, String name) throws IOException
IOException
public JavaWriter protectedFinal(Type type, String name, String value) throws IOException
IOException
public JavaWriter publicField(Type type, String name) throws IOException
IOException
public JavaWriter publicField(Type type, String name, String value) throws IOException
IOException
public JavaWriter publicFinal(Type type, String name) throws IOException
IOException
public JavaWriter publicFinal(Type type, String name, String value) throws IOException
IOException
public JavaWriter publicStaticFinal(Type type, String name, String value) throws IOException
IOException
public JavaWriter staticimports(Class<?>... imports) throws IOException
IOException
public JavaWriter suppressWarnings(String type) throws IOException
IOException
public CodeWriter suppressWarnings(String... types) throws IOException
IOException
Copyright © 2010–2024. All rights reserved.