SMACS

smacs.write.tree
Class CompilesScript

java.lang.Object
  extended bysmacs.write.tree.CompilesScript

public class CompilesScript
extends Object

build ProgramScript tree.

basically copies the nodes once again. The new nodes contain handlers to be used by routines to adjust the content for the target output language. (No, in java you can not add new interfaces at runtime).

Author:
Copyright (C) 2004, Guido Draheim. All rights reserved. Part of SMACS project.

Field Summary
protected static Logger log
           
 
Constructor Summary
CompilesScript()
           
 
Method Summary
static JavaScriptNode createJavaScriptFromProgramScript(ProgramSimpleNode script)
           
static ProgramScript createProgramScriptFromProgramList(SelectSimpleNode tree)
           
static PsqlScriptNode createPsqlScriptFromProgramScript(ProgramSimpleNode script)
           
static void main(String[] argv)
          test program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log
Constructor Detail

CompilesScript

public CompilesScript()
Method Detail

createProgramScriptFromProgramList

public static ProgramScript createProgramScriptFromProgramList(SelectSimpleNode tree)

createJavaScriptFromProgramScript

public static JavaScriptNode createJavaScriptFromProgramScript(ProgramSimpleNode script)

createPsqlScriptFromProgramScript

public static PsqlScriptNode createPsqlScriptFromProgramScript(ProgramSimpleNode script)

main

public static void main(String[] argv)
test program.


SMACS