public static class Java.CLASS extends Java._ClassBody
extendName, implsmodCount| Modifier and Type | Method and Description |
|---|---|
Java.METHOD |
addCLINIT() |
Java.METHOD |
addCTOR(String modifier) |
void |
addIMPL(String name) |
void |
addIMPL(String[] names) |
Java.METHOD |
addMETHOD(String retType,
String name) |
Java.METHOD |
addMETHOD(String modifier,
String retType,
String name) |
void |
addProperty(String type,
String name,
String def)
Add a general property to the class.
|
void |
addProperty(String type,
String name,
String def,
boolean readOnly)
Adds getters and setters for a given property with the given data
type and default value;
|
void |
addReadOnlyProperty(String type,
String name,
String def)
Add a readonly property to the class.
|
void |
emit(int indent,
PrintWriter fp)
Write the statement to the output stream.
|
void |
setExtends(String name) |
addIMPORT, addIMPORT, emit, getName, getPackage, setAuthor, setComment, setPackage, setSince, setTopLevel, setVersionaddCLASS, 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 void addIMPL(String name)
public void addIMPL(String[] names)
public void setExtends(String name)
public Java.METHOD addCLINIT()
public Java.METHOD addCTOR(String modifier)
public Java.METHOD addMETHOD(String retType, String name)
public void addProperty(String type, String name, String def, boolean readOnly)
name - attribute nametype - attribute data typedef - attribute default valuereadOnly - public void addProperty(String type, String name, String def)
type - the data typename - the property namedef - the default valuepublic void addReadOnlyProperty(String type, String name, String def)
type - the data typename - the property namedef - the default valuepublic Java.METHOD addMETHOD(String modifier, String retType, String name)
public void emit(int indent,
PrintWriter fp)
indent - the text indentfp - the output streamCopyright © 2013–2014. All rights reserved.