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
IOException
public ScalaWriter annotation(Class<? extends Annotation> annotation) throws IOException
IOException
public ScalaWriter beginObject(String header) throws IOException
IOException
public ScalaWriter beginClass(String header) throws IOException
IOException
public ScalaWriter beginClass(Type type) throws IOException
IOException
public ScalaWriter beginClass(Type type, Type superClass, Type... interfaces) throws IOException
IOException
public <T> ScalaWriter beginConstructor(Collection<T> parameters, com.google.common.base.Function<T,Parameter> transformer) throws IOException
IOException
public ScalaWriter beginConstructor(Parameter... params) throws IOException
IOException
public ScalaWriter beginInterface(Type type, Type... interfaces) throws IOException
IOException
public <T> ScalaWriter beginPublicMethod(Type returnType, String methodName, Collection<T> parameters, com.google.common.base.Function<T,Parameter> transformer) throws IOException
IOException
public ScalaWriter beginPublicMethod(Type returnType, String methodName, Parameter... args) throws IOException
IOException
public <T> ScalaWriter beginOverridePublicMethod(Type returnType, String methodName, Collection<T> parameters, com.google.common.base.Function<T,Parameter> transformer) throws IOException
IOException
public ScalaWriter beginOverridePublicMethod(Type returnType, String methodName, Parameter... args) throws IOException
IOException
public <T> ScalaWriter beginStaticMethod(Type returnType, String methodName, Collection<T> parameters, com.google.common.base.Function<T,Parameter> transformer) throws IOException
IOException
public ScalaWriter beginStaticMethod(Type returnType, String methodName, Parameter... args) throws IOException
IOException
public ScalaWriter caseClass(String header, Parameter... parameters) throws IOException
IOException
public ScalaWriter end() throws IOException
IOException
public ScalaWriter field(Type type, String name) throws IOException
IOException
public ScalaWriter imports(Class<?>... imports) throws IOException
IOException
public ScalaWriter imports(Package... imports) throws IOException
IOException
public ScalaWriter importClasses(String... imports) throws IOException
IOException
public ScalaWriter importPackages(String... imports) throws IOException
IOException
public ScalaWriter javadoc(String... lines) throws IOException
IOException
public ScalaWriter packageDecl(String packageName) throws IOException
IOException
public ScalaWriter privateField(Type type, String name) throws IOException
IOException
public ScalaWriter privateFinal(Type type, String name) throws IOException
IOException
public ScalaWriter privateFinal(Type type, String name, String value) throws IOException
IOException
public ScalaWriter privateStaticFinal(Type type, String name, String value) throws IOException
IOException
public ScalaWriter protectedField(Type type, String name) throws IOException
IOException
public ScalaWriter protectedFinal(Type type, String name) throws IOException
IOException
public ScalaWriter protectedFinal(Type type, String name, String value) throws IOException
IOException
public ScalaWriter publicField(Type type, String name) throws IOException
IOException
public ScalaWriter publicField(Type type, String name, String value) throws IOException
IOException
public ScalaWriter publicFinal(Type type, String name) throws IOException
IOException
public ScalaWriter publicFinal(Type type, String name, String value) throws IOException
IOException
public ScalaWriter publicStaticFinal(Type type, String name, String value) throws IOException
IOException
public ScalaWriter staticimports(Class<?>... imports) throws IOException
IOException
public ScalaWriter suppressWarnings(String type) throws IOException
IOException
public CodeWriter suppressWarnings(String... types) throws IOException
IOException
Copyright © 2010–2019. All rights reserved.