|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.xmlc.codegen.JavaCode
Class used to build the code body of a method.
Constructor Summary | |
JavaCode()
Constructor. |
Method Summary | |
void |
add(java.lang.String code)
Add of code to the current line |
void |
addln()
Add an EOLN |
void |
addln(java.lang.String line)
Add of a line of code. |
void |
addln(java.lang.String[] lines)
Add multiple lines of code. |
void |
addVars(java.lang.String line)
Add variables that will be inserted at the top of the code body. |
void |
addVars(java.lang.String[] lines)
Add variables that will be inserted at the top of the code body. |
void |
enter()
Increase indentation level. |
boolean |
isEmpty()
Determine if there is any code in the block. |
void |
leave()
Decrease indentation level. |
void |
print(IndentWriter out)
Print Java code. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JavaCode()
Method Detail |
public final void enter()
public final void leave()
public void addln()
public void add(java.lang.String code)
public void addln(java.lang.String line)
public void addln(java.lang.String[] lines)
public void addVars(java.lang.String line)
public void addVars(java.lang.String[] lines)
public boolean isEmpty()
public void print(IndentWriter out)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |