javassist.util.proxy
public class FactoryHelper extends Object
ProxyFactory.
The users of ProxyFactory do not have to see this class.
See Also: ProxyFactory
| Field Summary | |
|---|---|
| static int[] | dataSize
The data size of primitive types. |
| static Class[] | primitiveTypesClass objects representing primitive types. |
| static String[] | unwarpMethods
The names of methods for obtaining a primitive value
from a wrapper object. |
| static String[] | unwrapDesc
The descriptors of the unwrapping methods contained
in unwrapMethods. |
| static String[] | wrapperDesc
The descriptors of the constructors of wrapper classes. |
| static String[] | wrapperTypes
The fully-qualified names of wrapper classes for primitive types. |
| Method Summary | |
|---|---|
| static Class | toClass(ClassFile cf, ClassLoader loader)
Loads a class file by a given class loader.
|
| static Class | toClass(ClassFile cf, ClassLoader loader, ProtectionDomain domain)
Loads a class file by a given class loader.
|
| static int | typeIndex(Class type)
Returns an index for accessing arrays in this class.
|
| static void | writeFile(ClassFile cf, String directoryName)
Writes a class file. |
long
and double are 2; the others are 1.Class objects representing primitive types.intValue()
is such a method for obtaining an integer value from a
java.lang.Integer object.unwrapMethods.See Also: toClass
Parameters: domain if it is null, a default domain is used.
Since: 3.3
Throws: RuntimeException if a given type is not a primitive type.