ClassLoader#defineClass(String, byte[], int, int).
| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final DefinePackageHelper. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | definePackage(String
the package name. className, ClassLoader the class loader passed to loader)toClass() or
the default one obtained by getClassLoader().Defines a new package. |
| privileged | back to summary |
|---|---|
| private static final DefinePackageHelper. | |
| DefinePackageHelper | back to summary |
|---|---|
| private DefinePackageHelper() | |
| definePackage | back to summary |
|---|---|
| public static void definePackage(String className, ClassLoader loader) throws CannotCompileException Defines a new package. If the package is already defined, this method performs nothing. You do not necessarily need to
call this method. If this method is called, then
The jigsaw module introduced by Java 9 has broken this method.
In Java 9 or later, the VM argument
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract Package | definePackage(ClassLoader loader, String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase)
|
| Helper | back to summary |
|---|---|
| private Helper() | |
| definePackage | back to summary |
|---|---|
| pack-priv abstract Package definePackage(ClassLoader loader, String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) throws IllegalArgumentException | |
| Modifier and Type | Field and Description |
|---|---|
| private final MethodHandle | |
| private final SecurityActions | stack
Deprecated
as a consequence of
SecurityActions being deprecated.
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Package | definePackage(ClassLoader loader, String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase)
Implements abstract javassist.
|
| private MethodHandle |
| definePackage | back to summary |
|---|---|
| private final MethodHandle definePackage | |
| stack | back to summary |
|---|---|
| private final SecurityActions stack
Deprecated as a consequence of | |
| Java7 | back to summary |
|---|---|
| private Java7() | |
| definePackage | back to summary |
|---|---|
| pack-priv Package definePackage(ClassLoader loader, String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) throws IllegalArgumentException Implements abstract javassist.
| |
| getDefinePackageMethodHandle | back to summary |
|---|---|
| private MethodHandle getDefinePackageMethodHandle() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Package | definePackage(ClassLoader loader, String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase)
Implements abstract javassist.
|
| Java9 | back to summary |
|---|---|
| private Java9() | |
| definePackage | back to summary |
|---|---|
| pack-priv Package definePackage(ClassLoader loader, String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) throws IllegalArgumentException Implements abstract javassist.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Method | |
| private final SecurityActions | stack
Deprecated
as a consequence of
SecurityActions being deprecated.
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Package | definePackage(ClassLoader loader, String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase)
Implements abstract javassist.
|
| private Method |
| definePackage | back to summary |
|---|---|
| private final Method definePackage | |
| stack | back to summary |
|---|---|
| private final SecurityActions stack
Deprecated as a consequence of | |
| JavaOther | back to summary |
|---|---|
| private JavaOther() | |
| definePackage | back to summary |
|---|---|
| pack-priv Package definePackage(ClassLoader loader, String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) throws IllegalArgumentException Implements abstract javassist.
| |
| getDefinePackageMethod | back to summary |
|---|---|
| private Method getDefinePackageMethod() | |