org.objectweb.medor.optim.lib
Class MedorSourceTypeCompiler

java.lang.Object
  extended byorg.objectweb.medor.optim.lib.MedorSourceTypeCompiler
All Implemented Interfaces:
ExecPlanGenerator, QueryTransformer

public class MedorSourceTypeCompiler
extends java.lang.Object
implements ExecPlanGenerator


Constructor Summary
MedorSourceTypeCompiler(java.lang.String outputSourceDirectory, java.lang.String outputClassdirectory, java.lang.String[] libraryPaths)
           
 
Method Summary
 void addLibraryPath(java.lang.String classpath)
           
 void builtFilterSources(QueryTree query)
           
 void builtTCTypeSources(QueryTree query)
           
 void generateTCTypeClass()
           
 java.lang.String[] getOutPutDirectoryName()
           
 java.util.Iterator getPathsIterator()
           
 QueryTree getQueryTree()
           
 java.util.Iterator getSourceFileIterator()
           
 QueryTree transform(QueryTree query)
          In this case we will load the query filters generated class into the vm and reaffect them to the new QueryTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MedorSourceTypeCompiler

public MedorSourceTypeCompiler(java.lang.String outputSourceDirectory,
                               java.lang.String outputClassdirectory,
                               java.lang.String[] libraryPaths)
                        throws MedorException
Method Detail

builtFilterSources

public void builtFilterSources(QueryTree query)
                        throws MedorException
Throws:
MedorException

builtTCTypeSources

public void builtTCTypeSources(QueryTree query)
                        throws MedorException
Throws:
MedorException

getQueryTree

public QueryTree getQueryTree()

getOutPutDirectoryName

public java.lang.String[] getOutPutDirectoryName()

generateTCTypeClass

public void generateTCTypeClass()
                         throws MedorException
Throws:
MedorException

getSourceFileIterator

public java.util.Iterator getSourceFileIterator()

transform

public QueryTree transform(QueryTree query)
                    throws MedorException
In this case we will load the query filters generated class into the vm and reaffect them to the new QueryTree

Specified by:
transform in interface QueryTransformer
Throws:
MedorException

addLibraryPath

public void addLibraryPath(java.lang.String classpath)
                    throws MedorException
Throws:
MedorException

getPathsIterator

public java.util.Iterator getPathsIterator()