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