| java.lang.Object org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.SourceCodeControl
SourceCodeControl | public class SourceCodeControl (Code) | | Controls the generation of source code for the Java3D applications
This initial version is very limited in terms of it's formating
capabilities. Futher work is required and probably some extension to the
interface.
|
SourceCodeControl | public SourceCodeControl()(Code) | | |
addGlobalVariable | public void addGlobalVariable(String code)(Code) | | Add a global variable
|
addImport | public void addImport(String name)(Code) | | Add an import statement
Duplicates will be removed
|
addLine | public void addLine(int indent, String line)(Code) | | Add the line to the current method
|
completeCurrentMethod | public void completeCurrentMethod()(Code) | | Finish the current method
The new current method will be the previous current method ie
the current method stack will be popped
|
doIndent | void doIndent(PrintStream out, int indent)(Code) | | Produce the require indent in the code
output stream
|
generateCode | public void generateCode()(Code) | | |
getClassName | public String getClassName()(Code) | | Returns the name of this class
|
getTmpVariableName | public String getTmpVariableName()(Code) | | Returns a temporary variable name.
Takes into account the current scope so variable names are
reused
Needs improving so that variable names represent types
|
newCurrentMethod | public void newCurrentMethod(CodeMethod method)(Code) | | Add a method to the package and make it the current method
|
setClassName | public void setClassName(String className)(Code) | | Set the name of the current class
|
|
|