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