org.inxar.jenesis
Interface VirtualCompiler

All Known Implementing Classes:
MVC

public interface VirtualCompiler

The VirtualCompiler interface abstracts an object which is capable of compiling CompilationUnit objects.


Method Summary
 void addClasspath(java.lang.String value)
          Adds the string to the list of classpaths.
 void addOption(java.lang.String name)
          Adds a boolean option with the given name.
 void addOption(java.lang.String name, java.lang.String value)
          Adds an option with the given name and value.
 void addSourcepath(java.lang.String val)
          Adds the string to the list of sourcepaths.
 boolean compile(CompilationUnit unit)
          Generates the source code file and compiles the result.
 Iterator getClasspaths()
          Gets the classpath settings as an iterator of String.
 java.lang.String getDestination()
          Gets the base destination where new classes should be written.
 Iterator getOptions()
          Gets the sourcepath settings as an iterator of String.
 Iterator getSourcepaths()
          Gets the sourcepath settings as an iterator of String.
 void setDestination(java.lang.String dst)
          Sets the base destination where new classes should be written.
 

Method Detail

compile

public boolean compile(CompilationUnit unit)
                throws java.io.IOException
Generates the source code file and compiles the result.

getClasspaths

public Iterator getClasspaths()
Gets the classpath settings as an iterator of String.

getSourcepaths

public Iterator getSourcepaths()
Gets the sourcepath settings as an iterator of String.

getOptions

public Iterator getOptions()
Gets the sourcepath settings as an iterator of String.

addClasspath

public void addClasspath(java.lang.String value)
Adds the string to the list of classpaths.

addSourcepath

public void addSourcepath(java.lang.String val)
Adds the string to the list of sourcepaths.

addOption

public void addOption(java.lang.String name,
                      java.lang.String value)
Adds an option with the given name and value.

addOption

public void addOption(java.lang.String name)
Adds a boolean option with the given name.

getDestination

public java.lang.String getDestination()
Gets the base destination where new classes should be written.

setDestination

public void setDestination(java.lang.String dst)
Sets the base destination where new classes should be written.