org.eigenbase.javac
Class JaninoCompiler.JaninoCompilerArgs

java.lang.Object
  extended by org.eigenbase.javac.JavaCompilerArgs
      extended by org.eigenbase.javac.JaninoCompiler.JaninoCompilerArgs
Enclosing class:
JaninoCompiler

private static class JaninoCompiler.JaninoCompilerArgs
extends JavaCompilerArgs


Field Summary
(package private)  String destdir
           
(package private)  String fullClassName
           
(package private)  String source
           
 
Fields inherited from class org.eigenbase.javac.JavaCompilerArgs
argsList, classLoader, fileNameList
 
Constructor Summary
JaninoCompiler.JaninoCompilerArgs()
           
 
Method Summary
 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.
 boolean supportsSetSource()
          Returns whether JavaCompilerArgs.setSource(java.lang.String, java.lang.String) will work.
 
Methods inherited from class org.eigenbase.javac.JavaCompilerArgs
addFile, clear, getClassLoader, getFileNames, getStringArray, setClassLoader, setClasspath, setDebugInfo, setString, setStringArray, setVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

destdir

String destdir

fullClassName

String fullClassName

source

String source
Constructor Detail

JaninoCompiler.JaninoCompilerArgs

public JaninoCompiler.JaninoCompilerArgs()
Method Detail

supportsSetSource

public boolean supportsSetSource()
Description copied from class: JavaCompilerArgs
Returns whether JavaCompilerArgs.setSource(java.lang.String, java.lang.String) will work.

Overrides:
supportsSetSource in class JavaCompilerArgs

setDestdir

public void setDestdir(String destdir)
Overrides:
setDestdir in class JavaCompilerArgs

setSource

public void setSource(String source,
                      String fileName)
Description copied from class: JavaCompilerArgs
Sets the source code (that is, the full java program, generally starting with something like "package com.foo.bar;") and the file name.

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), JavaCompilerArgs.supportsSetSource() returns false, and this method throws UnsupportedOperationException.

Overrides:
setSource in class JavaCompilerArgs

setFullClassName

public void setFullClassName(String fullClassName)
Overrides:
setFullClassName in class JavaCompilerArgs