T
- public abstract class AbstractCodeWriter<T extends AbstractCodeWriter<T>> extends Object implements Appendable, CodeWriter
Constructor and Description |
---|
AbstractCodeWriter(Appendable appendable,
int spaces) |
Modifier and Type | Method and Description |
---|---|
T |
append(char c) |
T |
append(CharSequence csq) |
T |
append(CharSequence csq,
int start,
int end) |
T |
beginLine(String... segments) |
protected T |
goIn() |
protected T |
goOut() |
T |
line(String... segments) |
T |
nl() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
annotation, annotation, beginClass, beginClass, beginConstructor, beginConstructor, beginInterface, beginPublicMethod, beginPublicMethod, beginStaticMethod, beginStaticMethod, end, field, getClassConstant, getGenericName, getRawName, importClasses, importPackages, imports, imports, javadoc, packageDecl, privateField, privateFinal, privateFinal, privateStaticFinal, protectedField, protectedFinal, protectedFinal, publicField, publicField, publicFinal, publicFinal, publicStaticFinal, staticimports, suppressWarnings
public AbstractCodeWriter(Appendable appendable, int spaces)
public T append(char c) throws IOException
append
in interface Appendable
IOException
public T append(CharSequence csq) throws IOException
append
in interface Appendable
IOException
public T append(CharSequence csq, int start, int end) throws IOException
append
in interface Appendable
IOException
public T beginLine(String... segments) throws IOException
beginLine
in interface CodeWriter
IOException
protected T goIn()
protected T goOut()
public T line(String... segments) throws IOException
line
in interface CodeWriter
IOException
public T nl() throws IOException
nl
in interface CodeWriter
IOException
Copyright © 2010–2015. All rights reserved.