public static class Java._ClassBody extends Java._ClassBlock
| Modifier and Type | Field and Description |
|---|---|
protected String |
extendName |
protected List<String> |
impls |
modCount| Constructor and Description |
|---|
_ClassBody(String type,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addIMPORT(String name) |
void |
addIMPORT(String[] names) |
void |
emit(int indent,
PrintWriter fp)
Write the indent.
|
String |
getName() |
String |
getPackage() |
void |
setAuthor(String author) |
void |
setComment(String comment) |
void |
setPackage(String packageName) |
void |
setSince(String since) |
void |
setTopLevel(boolean topLevel) |
void |
setVersion(String version) |
addCLASS, addINTERFACE, addVAR, addVARaddC, addC, emitIndentadd, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic String getName()
public void setComment(String comment)
public void setTopLevel(boolean topLevel)
public void addIMPORT(String name)
public void addIMPORT(String[] names)
public void setPackage(String packageName)
public String getPackage()
public void setAuthor(String author)
public void setVersion(String version)
public void setSince(String since)
public void emit(int indent,
PrintWriter fp)
Java._Blockemit in class Java._Blockindent - the text indentfp - the output streamCopyright © 2013–2014. All rights reserved.