public interface CodeWriter extends Appendable
append, append, appendCodeWriter annotation(Annotation annotation) throws IOException
IOExceptionCodeWriter annotation(Class<? extends Annotation> annotation) throws IOException
IOExceptionCodeWriter beginClass(Type type) throws IOException
IOExceptionCodeWriter beginClass(Type type, Type superClass, Type... interfaces) throws IOException
IOException<T> CodeWriter beginConstructor(Collection<T> params, com.google.common.base.Function<T,Parameter> transformer) throws IOException
IOExceptionCodeWriter beginConstructor(Parameter... params) throws IOException
IOExceptionCodeWriter beginInterface(Type type, Type... interfaces) throws IOException
IOExceptionCodeWriter beginLine(String... segments) throws IOException
IOException<T> CodeWriter beginPublicMethod(Type returnType, String methodName, Collection<T> parameters, com.google.common.base.Function<T,Parameter> transformer) throws IOException
IOExceptionCodeWriter beginPublicMethod(Type returnType, String methodName, Parameter... args) throws IOException
IOException<T> CodeWriter beginStaticMethod(Type type, String name, Collection<T> params, com.google.common.base.Function<T,Parameter> transformer) throws IOException
IOExceptionCodeWriter beginStaticMethod(Type returnType, String methodName, Parameter... args) throws IOException
IOExceptionCodeWriter end() throws IOException
IOExceptionCodeWriter field(Type type, String name) throws IOException
IOExceptionCodeWriter imports(Class<?>... imports) throws IOException
IOExceptionCodeWriter imports(Package... imports) throws IOException
IOExceptionCodeWriter importClasses(String... classes) throws IOException
IOExceptionCodeWriter importPackages(String... packages) throws IOException
IOExceptionCodeWriter javadoc(String... lines) throws IOException
IOExceptionCodeWriter line(String... segments) throws IOException
IOExceptionCodeWriter nl() throws IOException
IOExceptionCodeWriter packageDecl(String packageName) throws IOException
IOExceptionCodeWriter privateField(Type type, String name) throws IOException
IOExceptionCodeWriter privateFinal(Type type, String name) throws IOException
IOExceptionCodeWriter privateFinal(Type type, String name, String value) throws IOException
IOExceptionCodeWriter privateStaticFinal(Type type, String name, String value) throws IOException
IOExceptionCodeWriter protectedField(Type type, String name) throws IOException
IOExceptionCodeWriter protectedFinal(Type type, String name) throws IOException
IOExceptionCodeWriter protectedFinal(Type type, String name, String value) throws IOException
IOExceptionCodeWriter publicField(Type type, String name) throws IOException
IOExceptionCodeWriter publicField(Type type, String name, String value) throws IOException
IOExceptionCodeWriter publicFinal(Type type, String name) throws IOException
IOExceptionCodeWriter publicFinal(Type type, String name, String value) throws IOException
IOExceptionCodeWriter publicStaticFinal(Type type, String name, String value) throws IOException
IOExceptionCodeWriter staticimports(Class<?>... imports) throws IOException
IOExceptionCodeWriter suppressWarnings(String type) throws IOException
IOExceptionCodeWriter suppressWarnings(String... types) throws IOException
IOExceptionCopyright © 2010–2015 Mysema Ltd. All rights reserved.