com.mysema.util
Interface CodeWriter
- All Superinterfaces:
- Appendable
- All Known Implementing Classes:
- JavaWriter
public interface CodeWriter
- extends Appendable
- Author:
- tiwe
Method Summary |
CodeWriter |
annotation(Annotation annotation)
|
CodeWriter |
beginClass(String simpleName,
String superClass,
String... interfaces)
|
|
beginConstructor(Collection<T> params,
org.apache.commons.collections15.Transformer<T,String> transformer)
|
CodeWriter |
beginConstructor(String... params)
|
CodeWriter |
beginInterface(String simpleName,
String... interfaces)
|
CodeWriter |
beginLine(String... segments)
|
|
beginMethod(String returnType,
String methodName,
Collection<T> parameters,
org.apache.commons.collections15.Transformer<T,String> transformer)
|
CodeWriter |
beginMethod(String returnType,
String methodName,
String... args)
|
|
beginStaticMethod(String type,
String name,
Collection<T> params,
org.apache.commons.collections15.Transformer<T,String> transformer)
|
CodeWriter |
beginStaticMethod(String returnType,
String methodName,
String... args)
|
CodeWriter |
end()
|
CodeWriter |
imports(Class<?>... imports)
|
CodeWriter |
imports(Package... imports)
|
CodeWriter |
javadoc(String... lines)
|
String |
join(String prefix,
String suffix,
Iterable<String> args)
|
String |
join(String prefix,
String suffix,
String... args)
|
CodeWriter |
line(String... segments)
|
CodeWriter |
nl()
|
CodeWriter |
packageDecl(String packageName)
|
CodeWriter |
privateStaticFinal(String type,
String name,
String value)
|
CodeWriter |
protectedField(String type,
String name)
|
CodeWriter |
publicFinal(String type,
String name)
|
CodeWriter |
publicFinal(String type,
String name,
String value)
|
CodeWriter |
publicStaticFinal(String type,
String name,
String value)
|
CodeWriter |
staticimports(Class<?>... imports)
|
CodeWriter |
suppressWarnings(String type)
|
annotation
CodeWriter annotation(Annotation annotation)
throws IOException
- Throws:
IOException
beginClass
CodeWriter beginClass(String simpleName,
String superClass,
String... interfaces)
throws IOException
- Throws:
IOException
beginConstructor
<T> CodeWriter beginConstructor(Collection<T> params,
org.apache.commons.collections15.Transformer<T,String> transformer)
throws IOException
- Throws:
IOException
beginConstructor
CodeWriter beginConstructor(String... params)
throws IOException
- Throws:
IOException
beginInterface
CodeWriter beginInterface(String simpleName,
String... interfaces)
throws IOException
- Throws:
IOException
beginLine
CodeWriter beginLine(String... segments)
throws IOException
- Throws:
IOException
beginMethod
<T> CodeWriter beginMethod(String returnType,
String methodName,
Collection<T> parameters,
org.apache.commons.collections15.Transformer<T,String> transformer)
throws IOException
- Throws:
IOException
beginMethod
CodeWriter beginMethod(String returnType,
String methodName,
String... args)
throws IOException
- Throws:
IOException
beginStaticMethod
<T> CodeWriter beginStaticMethod(String type,
String name,
Collection<T> params,
org.apache.commons.collections15.Transformer<T,String> transformer)
throws IOException
- Throws:
IOException
beginStaticMethod
CodeWriter beginStaticMethod(String returnType,
String methodName,
String... args)
throws IOException
- Throws:
IOException
end
CodeWriter end()
throws IOException
- Throws:
IOException
imports
CodeWriter imports(Class<?>... imports)
throws IOException
- Throws:
IOException
imports
CodeWriter imports(Package... imports)
throws IOException
- Throws:
IOException
javadoc
CodeWriter javadoc(String... lines)
throws IOException
- Throws:
IOException
join
String join(String prefix,
String suffix,
Iterable<String> args)
join
String join(String prefix,
String suffix,
String... args)
line
CodeWriter line(String... segments)
throws IOException
- Throws:
IOException
nl
CodeWriter nl()
throws IOException
- Throws:
IOException
packageDecl
CodeWriter packageDecl(String packageName)
throws IOException
- Throws:
IOException
privateStaticFinal
CodeWriter privateStaticFinal(String type,
String name,
String value)
throws IOException
- Throws:
IOException
protectedField
CodeWriter protectedField(String type,
String name)
throws IOException
- Throws:
IOException
publicFinal
CodeWriter publicFinal(String type,
String name)
throws IOException
- Throws:
IOException
publicFinal
CodeWriter publicFinal(String type,
String name,
String value)
throws IOException
- Throws:
IOException
publicStaticFinal
CodeWriter publicStaticFinal(String type,
String name,
String value)
throws IOException
- Throws:
IOException
staticimports
CodeWriter staticimports(Class<?>... imports)
throws IOException
- Throws:
IOException
suppressWarnings
CodeWriter suppressWarnings(String type)
throws IOException
- Throws:
IOException
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.