public interface CodeWriter
extends java.lang.Appendable
| Modifier and Type | Method and Description |
|---|---|
CodeWriter |
annotation(java.lang.annotation.Annotation annotation) |
CodeWriter |
annotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation) |
CodeWriter |
beginClass(Type type) |
CodeWriter |
beginClass(Type type,
Type superClass,
Type... interfaces) |
<T> CodeWriter |
beginConstructor(java.util.Collection<T> params,
java.util.function.Function<T,Parameter> transformer) |
CodeWriter |
beginConstructor(Parameter... params) |
CodeWriter |
beginInterface(Type type,
Type... interfaces) |
CodeWriter |
beginLine(java.lang.String... segments) |
<T> CodeWriter |
beginPublicMethod(Type returnType,
java.lang.String methodName,
java.util.Collection<T> parameters,
java.util.function.Function<T,Parameter> transformer) |
CodeWriter |
beginPublicMethod(Type returnType,
java.lang.String methodName,
Parameter... args) |
<T> CodeWriter |
beginStaticMethod(Type type,
java.lang.String name,
java.util.Collection<T> params,
java.util.function.Function<T,Parameter> transformer) |
CodeWriter |
beginStaticMethod(Type returnType,
java.lang.String methodName,
Parameter... args) |
CodeWriter |
end() |
CodeWriter |
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) |
CodeWriter |
importClasses(java.lang.String... classes) |
CodeWriter |
importPackages(java.lang.String... packages) |
CodeWriter |
imports(java.lang.Class<?>... imports) |
CodeWriter |
imports(java.lang.Package... imports) |
CodeWriter |
javadoc(java.lang.String... lines) |
CodeWriter |
line(java.lang.String... segments) |
CodeWriter |
nl() |
CodeWriter |
packageDecl(java.lang.String packageName) |
CodeWriter |
privateField(Type type,
java.lang.String name) |
CodeWriter |
privateFinal(Type type,
java.lang.String name) |
CodeWriter |
privateFinal(Type type,
java.lang.String name,
java.lang.String value) |
CodeWriter |
privateStaticFinal(Type type,
java.lang.String name,
java.lang.String value) |
CodeWriter |
protectedField(Type type,
java.lang.String name) |
CodeWriter |
protectedFinal(Type type,
java.lang.String name) |
CodeWriter |
protectedFinal(Type type,
java.lang.String name,
java.lang.String value) |
CodeWriter |
publicField(Type type,
java.lang.String name) |
CodeWriter |
publicField(Type type,
java.lang.String name,
java.lang.String value) |
CodeWriter |
publicFinal(Type type,
java.lang.String name) |
CodeWriter |
publicFinal(Type type,
java.lang.String name,
java.lang.String value) |
CodeWriter |
publicStaticFinal(Type type,
java.lang.String name,
java.lang.String value) |
CodeWriter |
staticimports(java.lang.Class<?>... imports) |
CodeWriter |
suppressWarnings(java.lang.String... types) |
CodeWriter |
suppressWarnings(java.lang.String type) |
java.lang.String getRawName(Type type)
java.lang.String getGenericName(boolean asArgType,
Type type)
java.lang.String getClassConstant(java.lang.String className)
CodeWriter annotation(java.lang.annotation.Annotation annotation) throws java.io.IOException
java.io.IOExceptionCodeWriter annotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation) throws java.io.IOException
java.io.IOExceptionCodeWriter beginClass(Type type) throws java.io.IOException
java.io.IOExceptionCodeWriter beginClass(Type type, Type superClass, Type... interfaces) throws java.io.IOException
java.io.IOException<T> CodeWriter beginConstructor(java.util.Collection<T> params, java.util.function.Function<T,Parameter> transformer) throws java.io.IOException
java.io.IOExceptionCodeWriter beginConstructor(Parameter... params) throws java.io.IOException
java.io.IOExceptionCodeWriter beginInterface(Type type, Type... interfaces) throws java.io.IOException
java.io.IOExceptionCodeWriter beginLine(java.lang.String... segments) throws java.io.IOException
java.io.IOException<T> CodeWriter 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.IOExceptionCodeWriter beginPublicMethod(Type returnType, java.lang.String methodName, Parameter... args) throws java.io.IOException
java.io.IOException<T> CodeWriter beginStaticMethod(Type type, java.lang.String name, java.util.Collection<T> params, java.util.function.Function<T,Parameter> transformer) throws java.io.IOException
java.io.IOExceptionCodeWriter beginStaticMethod(Type returnType, java.lang.String methodName, Parameter... args) throws java.io.IOException
java.io.IOExceptionCodeWriter end() throws java.io.IOException
java.io.IOExceptionCodeWriter field(Type type, java.lang.String name) throws java.io.IOException
java.io.IOExceptionCodeWriter imports(java.lang.Class<?>... imports) throws java.io.IOException
java.io.IOExceptionCodeWriter imports(java.lang.Package... imports) throws java.io.IOException
java.io.IOExceptionCodeWriter importClasses(java.lang.String... classes) throws java.io.IOException
java.io.IOExceptionCodeWriter importPackages(java.lang.String... packages) throws java.io.IOException
java.io.IOExceptionCodeWriter javadoc(java.lang.String... lines) throws java.io.IOException
java.io.IOExceptionCodeWriter line(java.lang.String... segments) throws java.io.IOException
java.io.IOExceptionCodeWriter nl() throws java.io.IOException
java.io.IOExceptionCodeWriter packageDecl(java.lang.String packageName) throws java.io.IOException
java.io.IOExceptionCodeWriter privateField(Type type, java.lang.String name) throws java.io.IOException
java.io.IOExceptionCodeWriter privateFinal(Type type, java.lang.String name) throws java.io.IOException
java.io.IOExceptionCodeWriter privateFinal(Type type, java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOExceptionCodeWriter privateStaticFinal(Type type, java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOExceptionCodeWriter protectedField(Type type, java.lang.String name) throws java.io.IOException
java.io.IOExceptionCodeWriter protectedFinal(Type type, java.lang.String name) throws java.io.IOException
java.io.IOExceptionCodeWriter protectedFinal(Type type, java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOExceptionCodeWriter publicField(Type type, java.lang.String name) throws java.io.IOException
java.io.IOExceptionCodeWriter publicField(Type type, java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOExceptionCodeWriter publicFinal(Type type, java.lang.String name) throws java.io.IOException
java.io.IOExceptionCodeWriter publicFinal(Type type, java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOExceptionCodeWriter publicStaticFinal(Type type, java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOExceptionCodeWriter staticimports(java.lang.Class<?>... imports) throws java.io.IOException
java.io.IOExceptionCodeWriter suppressWarnings(java.lang.String type) throws java.io.IOException
java.io.IOExceptionCodeWriter suppressWarnings(java.lang.String... types) throws java.io.IOException
java.io.IOExceptionCopyright © 2010–2021 Querydsl. All rights reserved.