public interface CodeWriter extends Appendable
append, append, append
CodeWriter annotation(Annotation annotation) throws IOException
IOException
CodeWriter annotation(Class<? extends Annotation> annotation) throws IOException
IOException
CodeWriter beginClass(Type type) throws IOException
IOException
CodeWriter 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
IOException
CodeWriter beginConstructor(Parameter... params) throws IOException
IOException
CodeWriter beginInterface(Type type, Type... interfaces) throws IOException
IOException
CodeWriter 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
IOException
CodeWriter 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
IOException
CodeWriter beginStaticMethod(Type returnType, String methodName, Parameter... args) throws IOException
IOException
CodeWriter end() throws IOException
IOException
CodeWriter field(Type type, String name) throws IOException
IOException
CodeWriter imports(Class<?>... imports) throws IOException
IOException
CodeWriter imports(Package... imports) throws IOException
IOException
CodeWriter importClasses(String... classes) throws IOException
IOException
CodeWriter importPackages(String... packages) throws IOException
IOException
CodeWriter javadoc(String... lines) throws IOException
IOException
CodeWriter line(String... segments) throws IOException
IOException
CodeWriter nl() throws IOException
IOException
CodeWriter packageDecl(String packageName) throws IOException
IOException
CodeWriter privateField(Type type, String name) throws IOException
IOException
CodeWriter privateFinal(Type type, String name) throws IOException
IOException
CodeWriter privateFinal(Type type, String name, String value) throws IOException
IOException
CodeWriter privateStaticFinal(Type type, String name, String value) throws IOException
IOException
CodeWriter protectedField(Type type, String name) throws IOException
IOException
CodeWriter protectedFinal(Type type, String name) throws IOException
IOException
CodeWriter protectedFinal(Type type, String name, String value) throws IOException
IOException
CodeWriter publicField(Type type, String name) throws IOException
IOException
CodeWriter publicField(Type type, String name, String value) throws IOException
IOException
CodeWriter publicFinal(Type type, String name) throws IOException
IOException
CodeWriter publicFinal(Type type, String name, String value) throws IOException
IOException
CodeWriter publicStaticFinal(Type type, String name, String value) throws IOException
IOException
CodeWriter staticimports(Class<?>... imports) throws IOException
IOException
CodeWriter suppressWarnings(String type) throws IOException
IOException
CodeWriter suppressWarnings(String... types) throws IOException
IOException
Copyright © 2010–2018. All rights reserved.