bee

bee.util

JavaCompiler

with(UserInterfaceui)JavaCompiler

UserInterfaceui
JavaCompiler

Create new Java compiler.

addClassPath(psychopath.Locationpath)JavaCompiler

psychopath.Locationpath

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(Librarylibrary)JavaCompiler

Librarylibrary

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(SetLibrarylibraries)JavaCompiler

SetLibrarylibraries

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(Stringname, Stringcode)JavaCompiler

Stringname

A class name.

Stringcode

A source code to compile.

JavaCompiler

Add source code

addSourceDirectory(psychopath.Directorydirectory)JavaCompiler

psychopath.Directorydirectory

Your source code directory.

JavaCompiler

Add the source code directory.

addSourceDirectory(kiss.Signalpsychopath.Directorydirectories)JavaCompiler

kiss.Signalpsychopath.Directorydirectories

Your source code directory.

JavaCompiler

Add the source code directory.

addProcessor(Class?Processorprocessor)JavaCompiler

Class?Processorprocessor
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(Processorprocessor)JavaCompiler

Processorprocessor
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(Stringkey, Stringvalue)JavaCompiler

Stringkey

A key name.

Stringvalue

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, Stringoption)JavaCompiler

EntryString, Stringoption

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, Stringoptions)JavaCompiler

MapString, Stringoptions

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(Pathdirectory)JavaCompiler

Pathdirectory

Your output directory. null value will reset to default.

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.Directorydirectory)JavaCompiler

psychopath.Directorydirectory

Your output directory. null value will reset to default.

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(booleanshow)JavaCompiler

booleanshow
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(booleanuseECJ)JavaCompiler

booleanuseECJ

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(Charsetencoding)JavaCompiler

Charsetencoding

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(booleandebug)JavaCompiler

booleandebug
JavaCompiler

Generate all debugging information, including local variables. By default, only line number and source file information is generated.

setVerbose(booleanverbose)JavaCompiler

booleanverbose
JavaCompiler

Verbose output. This includes information about each class loaded and each source file compiled.

setExtensionDirectory(Pathdirectory)JavaCompiler

Pathdirectory
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(SourceVersionreleaseVersion)JavaCompiler

SourceVersionreleaseVersion
JavaCompiler

Set release version.

setListener(DiagnosticListenerJavaFileObjectlistener)JavaCompiler

DiagnosticListenerJavaFileObjectlistener
JavaCompiler

Set compiler listener.

setGeneratedSourceOutput(psychopath.Directorydirectory)JavaCompiler

psychopath.Directorydirectory
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.