|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | 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(String code)
Add of code to the current line |
void |
addln()
Add an EOLN |
void |
addln(String line)
Add of a line of code. |
void |
addln(String[] lines)
Add multiple lines of code. |
void |
addVars(String line)
Add variables that will be inserted at the top of the code body. |
void |
addVars(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 |
|
Constructor Detail |
public JavaCode()
Method Detail |
public final void enter()
public final void leave()
public void addln()
public void add(String code)
public void addln(String line)
public void addln(String[] lines)
public void addVars(String line)
public void addVars(String[] lines)
public boolean isEmpty()
public void print(IndentWriter out)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |