bee.util
JavaCompiler
with
(UserInterface
ui
)
JavaCompiler
UserInterface
ui
)UserInterface ui |
|
JavaCompiler |
Create new Java compiler.
addClassPath
(psychopath.Location
path
)
JavaCompiler
psychopath.Location
path
)psychopath.Location path |
A classpath to add. |
JavaCompiler |
Set the user class path, overriding the user class path in the CLASSPATH environment variable. If threr is no classpath, the user class path consists of the current directory.
addClassPath
(Library
library
)
JavaCompiler
Library
library
)Library library |
A classpath to add. |
JavaCompiler |
Set the user class path, overriding the user class path in the CLASSPATH environment variable. If threr is no classpath, the user class path consists of the current directory.
addClassPath
(SetLibrary
libraries
)
JavaCompiler
SetLibrary
libraries
)Set libraries |
A list of classpaths to add. |
JavaCompiler |
Set the user class path, overriding the user class path in the CLASSPATH environment variable. If threr is no classpath, the user class path consists of the current directory.
addCurrentClassPath
()
JavaCompiler
JavaCompiler |
Use all current classpath.
addSource
(String
name
, String
code
)
JavaCompiler
String
name
, String
code
)String name |
A class name. |
String code |
A source code to compile. |
JavaCompiler |
Add source code
addSourceDirectory
(psychopath.Directory
directory
)
JavaCompiler
psychopath.Directory
directory
)psychopath.Directory directory |
Your source code directory. |
JavaCompiler |
Add the source code directory.
addSourceDirectory
(kiss.Signalpsychopath.Directory
directories
)
JavaCompiler
kiss.Signalpsychopath.Directory
directories
)kiss.Signal directories |
Your source code directory. |
JavaCompiler |
Add the source code directory.
addProcessor
(Class?
Processor
processor
)
JavaCompiler
Class?
Processor
processor
)Class processor |
|
JavaCompiler |
Add the specified annotation processor to compile process. This method bybpasses the default discovery process.
Names of the annotation processors to run. This bypasses the default discovery process.
addProcessor
(Processor
processor
)
JavaCompiler
Processor
processor
)Processor processor |
|
JavaCompiler |
Add the specified annotation processor to compile process. This method bybpasses the default discovery process.
Names of the annotation processors to run. This bypasses the default discovery process.
addProcessorOption
(String
key
, String
value
)
JavaCompiler
String
key
, String
value
)String key |
A key name. |
String value |
A passing value. |
JavaCompiler |
Options to pass to annotation processors. These are not interpreted by javac directly, but are made available for use by individual processors.
addProcessorOption
(EntryString
, String
option
)
JavaCompiler
EntryString
, String
option
)Entry option |
A key-value pair. |
JavaCompiler |
Options to pass to annotation processors. These are not interpreted by javac directly, but are made available for use by individual processors.
addProcessorOption
(MapString
, String
options
)
JavaCompiler
MapString
, String
options
)Map options |
A key-value set. |
JavaCompiler |
Options to pass to annotation processors. These are not interpreted by javac directly, but are made available for use by individual processors.
setOutput
(Path
directory
)
JavaCompiler
Path
directory
)Path directory |
Your output directory. |
JavaCompiler |
Set the destination directory for class files. If a class is part of a package, javac puts the class file in a subdirectory reflecting the package name, creating directories as needed. For example, if you specify -d c:\myclasses and the class is called com.mypackage.MyClass, then the class file is called c:\myclasses\com\mypackage\MyClass.class.
If you don't use this method, this compiler use in-memory storage for compiled classes.
Note that the directory specified by this method is not automatically added to your user class path.
setOutput
(psychopath.Directory
directory
)
JavaCompiler
psychopath.Directory
directory
)psychopath.Directory directory |
Your output directory. |
JavaCompiler |
Set the destination directory for class files. If a class is part of a package, javac puts the class file in a subdirectory reflecting the package name, creating directories as needed. For example, if you specify -d c:\myclasses and the class is called com.mypackage.MyClass, then the class file is called c:\myclasses\com\mypackage\MyClass.class.
If you don't use this method, this compiler use in-memory storage for compiled classes.
Note that the directory specified by this method is not automatically added to your user class path.
setDeprecation
(boolean
show
)
JavaCompiler
boolean
show
)boolean show |
|
JavaCompiler |
Show a description of each use or override of a deprecated member or class. Without deprecation, java compiler shows a summary of the source files that use or override deprecated members or classes.
setEclipseCompiler
(boolean
useECJ
)
JavaCompiler
boolean
useECJ
)boolean useECJ |
True to use ECJ, False to use Javac. |
JavaCompiler |
Set whether you want to use the Eclipse compiler (ECJ) instead of the JDK compiler (Javac).
setEncoding
(Charset
encoding
)
JavaCompiler
Charset
encoding
)Charset encoding |
A charset to set. |
JavaCompiler |
Set the source file encoding name, such as EUC-JP and UTF-8. If encoding is not specified or
null
is specified, the platform default converter is used.
setGenerateDebugInfo
(boolean
debug
)
JavaCompiler
boolean
debug
)boolean debug |
|
JavaCompiler |
Generate all debugging information, including local variables. By default, only line number and source file information is generated.
setVerbose
(boolean
verbose
)
JavaCompiler
boolean
verbose
)boolean verbose |
|
JavaCompiler |
Verbose output. This includes information about each class loaded and each source file compiled.
setExtensionDirectory
(Path
directory
)
JavaCompiler
Path
directory
)Path directory |
|
JavaCompiler |
Override the location of installed extensions.
setNoWarn
()
JavaCompiler
JavaCompiler |
Disable warning messages. This has the same meaning as -Xlint:none.
setCompileAll
()
JavaCompiler
JavaCompiler |
Compile all source files.
setVersion
(SourceVersion
releaseVersion
)
JavaCompiler
SourceVersion
releaseVersion
)SourceVersion releaseVersion |
|
JavaCompiler |
Set release version.
setListener
(DiagnosticListenerJavaFileObject
listener
)
JavaCompiler
DiagnosticListenerJavaFileObject
listener
)DiagnosticListener listener |
|
JavaCompiler |
Set compiler listener.
setGeneratedSourceOutput
(psychopath.Directory
directory
)
JavaCompiler
psychopath.Directory
directory
)psychopath.Directory directory |
|
JavaCompiler |
Specify the directory where to place generated source files. The directory must already exist; javac will not create it. If a class is part of a package, the compiler puts the source file in a subdirectory reflecting the package name, creating directories as needed. For example, if you specify -s C:\mysrc and the class is called com.mypackage.MyClass, then the source file will be placed in C:\mysrc\com\mypackage\MyClass.java.
compile
()
ClassLoader
ClassLoader |
Invoke compiler with specified options.