|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.components.compiler.AbstractCompiler
This class implements the functionality common to all Java compilers.
Field Summary | |
protected java.lang.String |
classpath
The classpath to be used for compilation |
protected java.lang.String |
destDir
The name of the directory to contain the resulting object program file |
protected java.lang.String |
encoding
The encoding of the source program or null to use the
platform's default encoding |
protected java.io.InputStream |
errors
The input stream to output compilation errors |
protected java.util.ArrayList |
fileList
The source program filenames |
protected java.lang.String |
srcDir
The 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 CompilerError s |
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 null to 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 Compiler
file
- The name of the file containing the source programpublic void setSource(java.lang.String srcDir)
setSource
in interface Compiler
srcDir
- The name of the directory containing the source program filepublic void setDestination(java.lang.String destDir)
setDestination
in interface Compiler
destDir
- The name of the directory to contain the resulting object
program filepublic void setClasspath(java.lang.String classpath)
setClasspath
in interface Compiler
classpath
- 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 Compiler
encoding
- The encoding of the input source file or null
to use the platform's default encodingpublic java.util.List getErrors() throws java.io.IOException
getErrors
in interface Compiler
java.io.IOException
- If an error occurs during message collectionprotected abstract java.util.List parseStream(java.io.BufferedReader errors) throws java.io.IOException
CompilerError
s
errors
- The error stream
java.io.IOException
- If an error occurs during message collectionprotected java.util.List fillArguments(java.util.List 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 |