| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.axis.components.compiler.AbstractCompiler
This class implements the functionality common to all Java compilers.
| Field Summary | |
| protected  java.lang.String | classpathThe classpath to be used for compilation | 
| protected  java.lang.String | destDirThe name of the directory to contain the resulting object program file | 
| protected  java.lang.String | encodingThe encoding of the source program or nullto use the
 platform's default encoding | 
| protected  java.io.InputStream | errorsThe input stream to output compilation errors | 
| protected  java.util.ArrayList | fileListThe source program filenames | 
| protected  java.lang.String | srcDirThe name of the directory containing the source program file | 
| Constructor Summary | |
| AbstractCompiler() | |
| Method Summary | |
|  void | addFile(java.lang.String file)Add the name of the file containing the source program to the file list | 
| protected  java.util.List | fillArguments(java.util.List arguments)Fill the arguments taken by the Java compiler | 
|  java.util.List | getErrors()Return the list of errors generated by this compilation | 
| protected abstract  java.util.List | parseStream(java.io.BufferedReader errors)Parse the compiler error stream to produce a list of CompilerErrors | 
|  void | setClasspath(java.lang.String classpath)Set the classpath to be used for this compilation | 
|  void | setDestination(java.lang.String destDir)Set the name of the directory to contain the resulting object program file | 
|  void | setEncoding(java.lang.String encoding)Set the encoding of the input source file or nullto use the
 platform's default encoding | 
|  void | setSource(java.lang.String srcDir)Set the name of the directory containing the source program file | 
| protected  java.lang.String[] | toStringArray(java.util.List arguments)Copy arguments to a string array | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.apache.axis.components.compiler.Compiler | 
| compile | 
| Field Detail | 
protected java.util.ArrayList fileList
protected java.lang.String srcDir
protected java.lang.String destDir
protected java.lang.String classpath
protected java.lang.String encoding
null to use the
 platform's default encoding
protected java.io.InputStream errors
| Constructor Detail | 
public AbstractCompiler()
| Method Detail | 
public void addFile(java.lang.String file)
addFile in interface Compilerfile - The name of the file containing the source programpublic void setSource(java.lang.String srcDir)
setSource in interface CompilersrcDir - The name of the directory containing the source program filepublic void setDestination(java.lang.String destDir)
setDestination in interface CompilerdestDir - The name of the directory to contain the resulting object
 program filepublic void setClasspath(java.lang.String classpath)
setClasspath in interface Compilerclasspath - The classpath to be used for this compilationpublic void setEncoding(java.lang.String encoding)
null to use the
 platform's default encoding
setEncoding in interface Compilerencoding - The encoding of the input source file or null
 to use the platform's default encoding
public java.util.List getErrors()
                         throws java.io.IOException
getErrors in interface Compilerjava.io.IOException - If an error occurs during message collection
protected abstract java.util.List parseStream(java.io.BufferedReader errors)
                                       throws java.io.IOException
CompilerErrors
errors - The error stream
java.io.IOException - If an error occurs during message collectionprotected java.util.List fillArguments(java.util.List arguments)
arguments - The list of compilation arguments
protected java.lang.String[] toStringArray(java.util.List arguments)
arguments - The compiler arguments
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||