ProxyFactory.
The users of ProxyFactory do not have to see this class.
ProxyFactory
| Modifier and Type | Field and Description |
|---|---|
| public static final int[] | dataSize
The data size of primitive types. |
| public static final Class | primitiveTypes
|
| public static final String[] | unwarpMethods
The names of methods for obtaining a primitive value from a wrapper object. |
| public static final String[] | unwrapDesc
The descriptors of the unwrapping methods contained
in |
| public static final String[] | wrapperDesc
The descriptors of the constructors of wrapper classes. |
| public static final String[] | wrapperTypes
The fully-qualified names of wrapper classes for primitive types. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static byte[] | |
| public static Class | |
| public static Class | toClass(ClassFile cf, ClassLoader
The class loader. It can be null if loader, ProtectionDomain neighbor
is not null.if it is null, a default domain is used. domain)
Deprecated
Loads a class file by a given class loader. |
| public static Class | toClass(ClassFile cf, Class<?>
a class belonging to the same package that
the loaded class belongs to.
It can be null. neighbor, ClassLoader The class loader. It can be null if loader, ProtectionDomain neighbor
is not null.if it is null, a default domain is used. domain)Loads a class file by a given class loader. |
| public static Class | toClass(ClassFile cf, MethodHandles.
used to define the class. lookupLoads a class file by a given lookup. |
| public static final int | |
| public static void | |
| private static void |
| dataSize | back to summary |
|---|---|
| public static final int[] dataSize The data size of primitive types. | |
| primitiveTypes | back to summary |
|---|---|
| public static final Class<?>[] primitiveTypes
| |
| unwarpMethods | back to summary |
|---|---|
| public static final String[] unwarpMethods The names of methods for obtaining a primitive value
from a wrapper object. For example, | |
| unwrapDesc | back to summary |
|---|---|
| public static final String[] unwrapDesc The descriptors of the unwrapping methods contained
in | |
| wrapperDesc | back to summary |
|---|---|
| public static final String[] wrapperDesc The descriptors of the constructors of wrapper classes. | |
| wrapperTypes | back to summary |
|---|---|
| public static final String[] wrapperTypes The fully-qualified names of wrapper classes for primitive types. | |
| FactoryHelper | back to summary |
|---|---|
| public FactoryHelper() | |
| toBytecode | back to summary |
|---|---|
| private static byte[] toBytecode(ClassFile cf) throws IOException | |
| toClass | back to summary |
|---|---|
| public static Class Deprecated
Loads a class file by a given class loader. This method uses a default protection domain for the class but it may not work with a security manager or a signed jar file. | |
| toClass | back to summary |
|---|---|
| public static Class Deprecated
Loads a class file by a given class loader.
| |
| toClass | back to summary |
|---|---|
| public static Class Loads a class file by a given class loader.
| |
| toClass | back to summary |
|---|---|
| public static Class Loads a class file by a given lookup.
| |
| typeIndex | back to summary |
|---|---|
| public static final int typeIndex(Class<?> type) Returns an index for accessing arrays in this class.
| |
| writeFile | back to summary |
|---|---|
| public static void writeFile(ClassFile cf, String directoryName) throws CannotCompileException Writes a class file. | |
| writeFile0 | back to summary |
|---|---|
| private static void writeFile0(ClassFile cf, String directoryName) throws CannotCompileException, IOException | |