Package com.querydsl.codegen.utils
Class JavaWriter
- All Implemented Interfaces:
CodeWriter,Appendable
JavaWriter is the default implementation of the CodeWriter interface
- Author:
- tiwe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionannotation(Annotation annotation) annotation(Class<? extends Annotation> annotation) beginClass(Type type) beginClass(Type type, Type superClass, Type... interfaces) beginConstructor(Parameter... parameters) <T> JavaWriterbeginConstructor(Collection<T> parameters, Function<T, Parameter> transformer) beginInterface(Type type, Type... interfaces) beginPublicMethod(Type returnType, String methodName, Parameter... args) <T> JavaWriterbeginPublicMethod(Type returnType, String methodName, Collection<T> parameters, Function<T, Parameter> transformer) beginStaticMethod(Type returnType, String methodName, Parameter... args) <T> JavaWriterbeginStaticMethod(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
-
JavaWriter
-
-
Method Details
-
annotation
- Throws:
IOException
-
annotation
- Throws:
IOException
-
beginClass
- Throws:
IOException
-
beginClass
- Throws:
IOException
-
beginConstructor
public <T> JavaWriter beginConstructor(Collection<T> parameters, Function<T, Parameter> transformer) throws IOException- Throws:
IOException
-
beginConstructor
- Throws:
IOException
-
beginInterface
- Throws:
IOException
-
beginPublicMethod
public <T> JavaWriter beginPublicMethod(Type returnType, String methodName, Collection<T> parameters, Function<T, Parameter> transformer) throws IOException- Throws:
IOException
-
beginPublicMethod
public JavaWriter beginPublicMethod(Type returnType, String methodName, Parameter... args) throws IOException - Throws:
IOException
-
beginStaticMethod
public <T> JavaWriter beginStaticMethod(Type returnType, String methodName, Collection<T> parameters, Function<T, Parameter> transformer) throws IOException- Throws:
IOException
-
beginStaticMethod
public JavaWriter beginStaticMethod(Type returnType, String methodName, Parameter... args) throws IOException - 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
-