Package com.querydsl.codegen.utils
Interface CodeWriter
- All Superinterfaces:
Appendable
- All Known Implementing Classes:
AbstractCodeWriter,JavaWriter,ScalaWriter
CodeWriter defines an interface for serializing Java source code
- Author:
- tiwe
-
Method Summary
Modifier and TypeMethodDescriptionannotation(Annotation annotation) annotation(Class<? extends Annotation> annotation) beginClass(Type type) beginClass(Type type, Type superClass, Type... interfaces) beginConstructor(Parameter... params) <T> CodeWriterbeginConstructor(Collection<T> params, Function<T, Parameter> transformer) beginInterface(Type type, Type... interfaces) beginPublicMethod(Type returnType, String methodName, Parameter... args) <T> CodeWriterbeginPublicMethod(Type returnType, String methodName, Collection<T> parameters, Function<T, Parameter> transformer) beginStaticMethod(Type returnType, String methodName, Parameter... args) <T> CodeWriterbeginStaticMethod(Type type, String name, Collection<T> params, Function<T, Parameter> transformer) end()getClassConstant(String className) getGenericName(boolean asArgType, Type type) getRawName(Type type) importClasses(String... classes) importPackages(String... packages) nl()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) Methods inherited from interface java.lang.Appendable
append, append, append
-
Method Details
-
getRawName
-
getGenericName
-
getClassConstant
-
annotation
- Throws:
IOException
-
annotation
- Throws:
IOException
-
beginClass
- Throws:
IOException
-
beginClass
- Throws:
IOException
-
beginConstructor
<T> CodeWriter beginConstructor(Collection<T> params, Function<T, Parameter> transformer) throws IOException- Throws:
IOException
-
beginConstructor
- Throws:
IOException
-
beginInterface
- Throws:
IOException
-
beginLine
- Throws:
IOException
-
beginPublicMethod
<T> CodeWriter beginPublicMethod(Type returnType, String methodName, Collection<T> parameters, Function<T, Parameter> transformer) throws IOException- Throws:
IOException
-
beginPublicMethod
CodeWriter beginPublicMethod(Type returnType, String methodName, Parameter... args) throws IOException - Throws:
IOException
-
beginStaticMethod
<T> CodeWriter beginStaticMethod(Type type, String name, Collection<T> params, Function<T, Parameter> transformer) throws IOException- Throws:
IOException
-
beginStaticMethod
CodeWriter beginStaticMethod(Type returnType, String methodName, Parameter... args) throws IOException - Throws:
IOException
-
end
- Throws:
IOException
-
field
- Throws:
IOException
-
imports
- Throws:
IOException
-
imports
- Throws:
IOException
-
importClasses
- Throws:
IOException
-
importPackages
- Throws:
IOException
-
javadoc
- Throws:
IOException
-
line
- Throws:
IOException
-
nl
- 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
-