|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.javac.JavaCompilerArgs
public class JavaCompilerArgs
A JavaCompilerArgs
holds the arguments for a JavaCompiler
.
Specific implementations of JavaCompiler
may override
setArgument
methods to store arguments in a different fashion,
or may throw UnsupportedOperationException
to indicate that the
compiler does not support that argument.
Field Summary | |
---|---|
(package private) List<String> |
argsList
|
(package private) ClassLoader |
classLoader
|
(package private) List<String> |
fileNameList
|
Constructor Summary | |
---|---|
JavaCompilerArgs()
|
Method Summary | |
---|---|
void |
addFile(String fileName)
|
void |
clear()
|
ClassLoader |
getClassLoader()
|
String[] |
getFileNames()
|
String[] |
getStringArray()
|
void |
setClassLoader(ClassLoader classLoader)
|
void |
setClasspath(String classpath)
|
void |
setDebugInfo(int i)
|
void |
setDestdir(String destdir)
|
void |
setFullClassName(String fullClassName)
|
void |
setSource(String source,
String fileName)
Sets the source code (that is, the full java program, generally starting with something like "package com.foo.bar;") and the file name. |
void |
setString(String args)
Sets the arguments by parsing a standard java argument string. |
void |
setStringArray(String[] args)
Sets the arguments by parsing a standard java argument string. |
void |
setVerbose(boolean verbose)
|
boolean |
supportsSetSource()
Returns whether setSource(java.lang.String, java.lang.String) will work. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
List<String> argsList
List<String> fileNameList
ClassLoader classLoader
Constructor Detail |
---|
public JavaCompilerArgs()
Method Detail |
---|
public void clear()
public void setString(String args)
A typical such string is "-classpath classpath -d
dir -verbose [file...]"
public void setStringArray(String[] args)
"-classpath classpath -d dir -verbose
[file...]"
public String[] getStringArray()
public void addFile(String fileName)
public String[] getFileNames()
public void setVerbose(boolean verbose)
public void setDestdir(String destdir)
public void setClasspath(String classpath)
public void setDebugInfo(int i)
public void setSource(String source, String fileName)
This method is optional. It only works if the compiler supports
in-memory compilation. If this compiler does not return in-memory
compilation (which the base class does not), supportsSetSource()
returns false, and this method throws UnsupportedOperationException
.
public boolean supportsSetSource()
setSource(java.lang.String, java.lang.String)
will work.
public void setFullClassName(String fullClassName)
public void setClassLoader(ClassLoader classLoader)
public ClassLoader getClassLoader()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |