Package com.querydsl.codegen.utils
Class ScalaWriter
- All Implemented Interfaces:
CodeWriter,Appendable
- Author:
- tiwe
-
Constructor Summary
ConstructorsConstructorDescriptionScalaWriter(Appendable appendable) ScalaWriter(Appendable appendable, boolean compact) -
Method Summary
Modifier and TypeMethodDescriptionannotation(Annotation annotation) annotation(Class<? extends Annotation> annotation) beginClass(Type type) beginClass(Type type, Type superClass, Type... interfaces) beginClass(String header) beginConstructor(Parameter... params) <T> ScalaWriterbeginConstructor(Collection<T> parameters, Function<T, Parameter> transformer) beginInterface(Type type, Type... interfaces) beginObject(String header) beginOverridePublicMethod(Type returnType, String methodName, Parameter... args) <T> ScalaWriterbeginOverridePublicMethod(Type returnType, String methodName, Collection<T> parameters, Function<T, Parameter> transformer) beginPublicMethod(Type returnType, String methodName, Parameter... args) <T> ScalaWriterbeginPublicMethod(Type returnType, String methodName, Collection<T> parameters, Function<T, Parameter> transformer) beginStaticMethod(Type returnType, String methodName, Parameter... args) <T> ScalaWriterbeginStaticMethod(Type returnType, String methodName, Collection<T> parameters, Function<T, Parameter> transformer) end()getClassConstant(String className) getGenericName(boolean asArgType, Type type) getRawName(Type type) importClasses(String... imports) importPackages(String... imports) packageDecl(String packageName) privateField(Type type, String name) privateFinal(Type type, String name) privateFinal(Type type, String name, String value) privateStaticFinal(Type type, String name, String value) protectedField(Type type, String name) protectedFinal(Type type, String name) protectedFinal(Type type, String name, String value) publicField(Type type, String name) publicField(Type type, String name, String value) publicFinal(Type type, String name) publicFinal(Type type, String name, String value) publicStaticFinal(Type type, String name, String value) staticimports(Class<?>... imports) suppressWarnings(String type) suppressWarnings(String... types)
-
Constructor Details
-
ScalaWriter
-
ScalaWriter
-
-
Method Details
-
annotation
- Throws:
IOException
-
annotation
- Throws:
IOException
-
beginObject
- Throws:
IOException
-
beginClass
- Throws:
IOException
-
beginClass
- Throws:
IOException
-
beginClass
- Throws:
IOException
-
beginConstructor
public <T> ScalaWriter beginConstructor(Collection<T> parameters, Function<T, Parameter> transformer) throws IOException- Throws:
IOException
-
beginConstructor
- Throws:
IOException
-
beginInterface
- Throws:
IOException
-
beginPublicMethod
public <T> ScalaWriter beginPublicMethod(Type returnType, String methodName, Collection<T> parameters, Function<T, Parameter> transformer) throws IOException- Throws:
IOException
-
beginPublicMethod
public ScalaWriter beginPublicMethod(Type returnType, String methodName, Parameter... args) throws IOException - Throws:
IOException
-
beginOverridePublicMethod
public <T> ScalaWriter beginOverridePublicMethod(Type returnType, String methodName, Collection<T> parameters, Function<T, Parameter> transformer) throws IOException- Throws:
IOException
-
beginOverridePublicMethod
public ScalaWriter beginOverridePublicMethod(Type returnType, String methodName, Parameter... args) throws IOException - Throws:
IOException
-
beginStaticMethod
public <T> ScalaWriter beginStaticMethod(Type returnType, String methodName, Collection<T> parameters, Function<T, Parameter> transformer) throws IOException- Throws:
IOException
-
beginStaticMethod
public ScalaWriter beginStaticMethod(Type returnType, String methodName, Parameter... args) throws IOException - Throws:
IOException
-
caseClass
- Throws:
IOException
-
end
- Throws:
IOException
-
field
- Throws:
IOException
-
getClassConstant
-
getGenericName
-
getRawName
-
imports
- Throws:
IOException
-
imports
- Throws:
IOException
-
importClasses
- Throws:
IOException
-
importPackages
- Throws:
IOException
-
javadoc
- Throws:
IOException
-
packageDecl
- Throws:
IOException
-
privateField
- Throws:
IOException
-
privateFinal
- Throws:
IOException
-
privateFinal
- Throws:
IOException
-
privateStaticFinal
- Throws:
IOException
-
protectedField
- Throws:
IOException
-
protectedFinal
- Throws:
IOException
-
protectedFinal
- Throws:
IOException
-
publicField
- Throws:
IOException
-
publicField
- Throws:
IOException
-
publicFinal
- Throws:
IOException
-
publicFinal
- Throws:
IOException
-
publicStaticFinal
- Throws:
IOException
-
staticimports
- Throws:
IOException
-
suppressWarnings
- Throws:
IOException
-
suppressWarnings
- Throws:
IOException
-