com.inxar.jenesis
Class MVC

java.lang.Object
  |
  +--com.inxar.jenesis.MVC
All Implemented Interfaces:
VirtualCompiler
Direct Known Subclasses:
Javac, Jikes

public abstract class MVC
extends java.lang.Object
implements VirtualCompiler

Base class for VirtualCompiler implementations.


Field Summary
protected  java.lang.String dest
           
protected  java.util.Vector libs
           
protected  java.util.Vector opts
           
protected  java.util.Vector srcs
           
 
Constructor Summary
protected MVC()
           
 
Method Summary
 void addClasspath(java.lang.String val)
          Adds the string to the list of classpaths.
 void addOption(java.lang.String key)
          Adds a boolean option with the given name.
 void addOption(java.lang.String key, java.lang.String val)
          Adds an option with the given name and value.
 void addSourcepath(java.lang.String val)
          Adds the string to the list of sourcepaths.
 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.
protected  void join(java.lang.String[] array, java.lang.String delim, java.lang.StringBuffer buf)
           
 void setDestination(java.lang.String dest)
          Sets the base destination where new classes should be written.
protected  java.lang.String[] split(java.lang.String s, java.lang.String delim)
           
protected  java.lang.String toFilename(CompilationUnit unit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.inxar.jenesis.VirtualCompiler
compile
 

Field Detail

dest

protected java.lang.String dest

opts

protected java.util.Vector opts

libs

protected java.util.Vector libs

srcs

protected java.util.Vector srcs
Constructor Detail

MVC

protected MVC()
Method Detail

getClasspaths

public Iterator getClasspaths()
Description copied from interface: VirtualCompiler
Gets the classpath settings as an iterator of String.
Specified by:
getClasspaths in interface VirtualCompiler

getSourcepaths

public Iterator getSourcepaths()
Description copied from interface: VirtualCompiler
Gets the sourcepath settings as an iterator of String.
Specified by:
getSourcepaths in interface VirtualCompiler

getOptions

public Iterator getOptions()
Description copied from interface: VirtualCompiler
Gets the sourcepath settings as an iterator of String.
Specified by:
getOptions in interface VirtualCompiler

addClasspath

public void addClasspath(java.lang.String val)
Description copied from interface: VirtualCompiler
Adds the string to the list of classpaths.
Specified by:
addClasspath in interface VirtualCompiler

addSourcepath

public void addSourcepath(java.lang.String val)
Description copied from interface: VirtualCompiler
Adds the string to the list of sourcepaths.
Specified by:
addSourcepath in interface VirtualCompiler

addOption

public void addOption(java.lang.String key,
                      java.lang.String val)
Description copied from interface: VirtualCompiler
Adds an option with the given name and value.
Specified by:
addOption in interface VirtualCompiler

addOption

public void addOption(java.lang.String key)
Description copied from interface: VirtualCompiler
Adds a boolean option with the given name.
Specified by:
addOption in interface VirtualCompiler

setDestination

public void setDestination(java.lang.String dest)
Description copied from interface: VirtualCompiler
Sets the base destination where new classes should be written.
Specified by:
setDestination in interface VirtualCompiler

getDestination

public java.lang.String getDestination()
Description copied from interface: VirtualCompiler
Gets the base destination where new classes should be written.
Specified by:
getDestination in interface VirtualCompiler

split

protected java.lang.String[] split(java.lang.String s,
                                   java.lang.String delim)

join

protected void join(java.lang.String[] array,
                    java.lang.String delim,
                    java.lang.StringBuffer buf)

toFilename

protected java.lang.String toFilename(CompilationUnit unit)