public class ScalaWriter extends AbstractCodeWriter<ScalaWriter>
Constructor and Description |
---|
ScalaWriter(java.lang.Appendable appendable) |
ScalaWriter(java.lang.Appendable appendable,
boolean compact) |
Modifier and Type | Method and Description |
---|---|
ScalaWriter |
annotation(java.lang.annotation.Annotation annotation) |
ScalaWriter |
annotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation) |
ScalaWriter |
beginClass(java.lang.String header) |
ScalaWriter |
beginClass(Type type) |
ScalaWriter |
beginClass(Type type,
Type superClass,
Type... interfaces) |
<T> ScalaWriter |
beginConstructor(java.util.Collection<T> parameters,
java.util.function.Function<T,Parameter> transformer) |
ScalaWriter |
beginConstructor(Parameter... params) |
ScalaWriter |
beginInterface(Type type,
Type... interfaces) |
ScalaWriter |
beginObject(java.lang.String header) |
<T> ScalaWriter |
beginOverridePublicMethod(Type returnType,
java.lang.String methodName,
java.util.Collection<T> parameters,
java.util.function.Function<T,Parameter> transformer) |
ScalaWriter |
beginOverridePublicMethod(Type returnType,
java.lang.String methodName,
Parameter... args) |
<T> ScalaWriter |
beginPublicMethod(Type returnType,
java.lang.String methodName,
java.util.Collection<T> parameters,
java.util.function.Function<T,Parameter> transformer) |
ScalaWriter |
beginPublicMethod(Type returnType,
java.lang.String methodName,
Parameter... args) |
<T> ScalaWriter |
beginStaticMethod(Type returnType,
java.lang.String methodName,
java.util.Collection<T> parameters,
java.util.function.Function<T,Parameter> transformer) |
ScalaWriter |
beginStaticMethod(Type returnType,
java.lang.String methodName,
Parameter... args) |
ScalaWriter |
caseClass(java.lang.String header,
Parameter... parameters) |
ScalaWriter |
end() |
ScalaWriter |
field(Type type,
java.lang.String name) |
java.lang.String |
getClassConstant(java.lang.String className) |
java.lang.String |
getGenericName(boolean asArgType,
Type type) |
java.lang.String |
getRawName(Type type) |
ScalaWriter |
importClasses(java.lang.String... imports) |
ScalaWriter |
importPackages(java.lang.String... imports) |
ScalaWriter |
imports(java.lang.Class<?>... imports) |
ScalaWriter |
imports(java.lang.Package... imports) |
ScalaWriter |
javadoc(java.lang.String... lines) |
ScalaWriter |
packageDecl(java.lang.String packageName) |
ScalaWriter |
privateField(Type type,
java.lang.String name) |
ScalaWriter |
privateFinal(Type type,
java.lang.String name) |
ScalaWriter |
privateFinal(Type type,
java.lang.String name,
java.lang.String value) |
ScalaWriter |
privateStaticFinal(Type type,
java.lang.String name,
java.lang.String value) |
ScalaWriter |
protectedField(Type type,
java.lang.String name) |
ScalaWriter |
protectedFinal(Type type,
java.lang.String name) |
ScalaWriter |
protectedFinal(Type type,
java.lang.String name,
java.lang.String value) |
ScalaWriter |
publicField(Type type,
java.lang.String name) |
ScalaWriter |
publicField(Type type,
java.lang.String name,
java.lang.String value) |
ScalaWriter |
publicFinal(Type type,
java.lang.String name) |
ScalaWriter |
publicFinal(Type type,
java.lang.String name,
java.lang.String value) |
ScalaWriter |
publicStaticFinal(Type type,
java.lang.String name,
java.lang.String value) |
ScalaWriter |
staticimports(java.lang.Class<?>... imports) |
CodeWriter |
suppressWarnings(java.lang.String... types) |
ScalaWriter |
suppressWarnings(java.lang.String type) |
public ScalaWriter(java.lang.Appendable appendable)
public ScalaWriter(java.lang.Appendable appendable, boolean compact)
public ScalaWriter annotation(java.lang.annotation.Annotation annotation) throws java.io.IOException
java.io.IOException
public ScalaWriter annotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation) throws java.io.IOException
java.io.IOException
public ScalaWriter beginObject(java.lang.String header) throws java.io.IOException
java.io.IOException
public ScalaWriter beginClass(java.lang.String header) throws java.io.IOException
java.io.IOException
public ScalaWriter beginClass(Type type) throws java.io.IOException
java.io.IOException
public ScalaWriter beginClass(Type type, Type superClass, Type... interfaces) throws java.io.IOException
java.io.IOException
public <T> ScalaWriter beginConstructor(java.util.Collection<T> parameters, java.util.function.Function<T,Parameter> transformer) throws java.io.IOException
java.io.IOException
public ScalaWriter beginConstructor(Parameter... params) throws java.io.IOException
java.io.IOException
public ScalaWriter beginInterface(Type type, Type... interfaces) throws java.io.IOException
java.io.IOException
public <T> ScalaWriter beginPublicMethod(Type returnType, java.lang.String methodName, java.util.Collection<T> parameters, java.util.function.Function<T,Parameter> transformer) throws java.io.IOException
java.io.IOException
public ScalaWriter beginPublicMethod(Type returnType, java.lang.String methodName, Parameter... args) throws java.io.IOException
java.io.IOException
public <T> ScalaWriter beginOverridePublicMethod(Type returnType, java.lang.String methodName, java.util.Collection<T> parameters, java.util.function.Function<T,Parameter> transformer) throws java.io.IOException
java.io.IOException
public ScalaWriter beginOverridePublicMethod(Type returnType, java.lang.String methodName, Parameter... args) throws java.io.IOException
java.io.IOException
public <T> ScalaWriter beginStaticMethod(Type returnType, java.lang.String methodName, java.util.Collection<T> parameters, java.util.function.Function<T,Parameter> transformer) throws java.io.IOException
java.io.IOException
public ScalaWriter beginStaticMethod(Type returnType, java.lang.String methodName, Parameter... args) throws java.io.IOException
java.io.IOException
public ScalaWriter caseClass(java.lang.String header, Parameter... parameters) throws java.io.IOException
java.io.IOException
public ScalaWriter end() throws java.io.IOException
java.io.IOException
public ScalaWriter field(Type type, java.lang.String name) throws java.io.IOException
java.io.IOException
public java.lang.String getClassConstant(java.lang.String className)
public java.lang.String getGenericName(boolean asArgType, Type type)
public java.lang.String getRawName(Type type)
public ScalaWriter imports(java.lang.Class<?>... imports) throws java.io.IOException
java.io.IOException
public ScalaWriter imports(java.lang.Package... imports) throws java.io.IOException
java.io.IOException
public ScalaWriter importClasses(java.lang.String... imports) throws java.io.IOException
java.io.IOException
public ScalaWriter importPackages(java.lang.String... imports) throws java.io.IOException
java.io.IOException
public ScalaWriter javadoc(java.lang.String... lines) throws java.io.IOException
java.io.IOException
public ScalaWriter packageDecl(java.lang.String packageName) throws java.io.IOException
java.io.IOException
public ScalaWriter privateField(Type type, java.lang.String name) throws java.io.IOException
java.io.IOException
public ScalaWriter privateFinal(Type type, java.lang.String name) throws java.io.IOException
java.io.IOException
public ScalaWriter privateFinal(Type type, java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOException
public ScalaWriter privateStaticFinal(Type type, java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOException
public ScalaWriter protectedField(Type type, java.lang.String name) throws java.io.IOException
java.io.IOException
public ScalaWriter protectedFinal(Type type, java.lang.String name) throws java.io.IOException
java.io.IOException
public ScalaWriter protectedFinal(Type type, java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOException
public ScalaWriter publicField(Type type, java.lang.String name) throws java.io.IOException
java.io.IOException
public ScalaWriter publicField(Type type, java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOException
public ScalaWriter publicFinal(Type type, java.lang.String name) throws java.io.IOException
java.io.IOException
public ScalaWriter publicFinal(Type type, java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOException
public ScalaWriter publicStaticFinal(Type type, java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOException
public ScalaWriter staticimports(java.lang.Class<?>... imports) throws java.io.IOException
java.io.IOException
public ScalaWriter suppressWarnings(java.lang.String type) throws java.io.IOException
java.io.IOException
public CodeWriter suppressWarnings(java.lang.String... types) throws java.io.IOException
java.io.IOException
Copyright © 2007–2021 Querydsl. All rights reserved.