Package javassist.runtime
Class Desc
- java.lang.Object
-
- javassist.runtime.Desc
-
public class Desc extends java.lang.ObjectA support class for implementing$sigand$type. This support class is required at runtime only if$sigor$typeis used.
-
-
Field Summary
Fields Modifier and Type Field Description static booleanuseContextClassLoaderSpecifies how ajava.lang.Classobject is loaded.
-
Constructor Summary
Constructors Constructor Description Desc()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Class<?>getClazz(java.lang.String name)Interprets the given class name.static java.lang.Class<?>[]getParams(java.lang.String desc)Interprets the given type descriptor representing a method signature.static java.lang.Class<?>getType(java.lang.String desc)Interprets the given type descriptor.static voidresetUseContextClassLoaderLocally()Changes so that the current thread will not use the context class loader when a class is loaded.static voidsetUseContextClassLoaderLocally()Changes so that the current thread will use the context class loader when a class is loaded.
-
-
-
Method Detail
-
setUseContextClassLoaderLocally
public static void setUseContextClassLoaderLocally()
Changes so that the current thread will use the context class loader when a class is loaded. This method changes the behavior per thread unlikeuseContextClassLoader.- Since:
- 3.25
-
resetUseContextClassLoaderLocally
public static void resetUseContextClassLoaderLocally()
Changes so that the current thread will not use the context class loader when a class is loaded. Call this method before releasing the current thread for reuse. It invokesThreadLocal.remvoe().- Since:
- 3.25
-
getClazz
public static java.lang.Class<?> getClazz(java.lang.String name)
Interprets the given class name. It is used for implementing$class.
-
getParams
public static java.lang.Class<?>[] getParams(java.lang.String desc)
Interprets the given type descriptor representing a method signature. It is used for implementing$sig.
-
getType
public static java.lang.Class<?> getType(java.lang.String desc)
Interprets the given type descriptor. It is used for implementing$type.
-
-