public class Javac
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Javac.ClassPath
a collection of class path elements
|
| Constructor and Description |
|---|
Javac() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<ClassInfo> |
compile(java.util.List<java.lang.String> srcCodes)
Given a list of file-scope java code (equivalent to a .java file, including package and
import declarations), compile() invokes javac to compile them, produce classfiles and return
a list of
|
static Javac.ClassPath |
getClassPath(java.lang.Class start,
java.lang.ClassLoader end)
get the class path comprising the paths of URL class loaders ancestors
|
public static java.util.List<ClassInfo> compile(java.util.List<java.lang.String> srcCodes) throws java.io.IOException
srcCodes - . List of strings.java.io.IOExceptionpublic static Javac.ClassPath getClassPath(java.lang.Class start, java.lang.ClassLoader end)
start - start with the class loader that loaded this object, or null for this method's classend - the last classloader to consider, or null to include everything up to but not including
the system class loader