public class Desc extends Object
$sig
and
$type
.
This support class is required at runtime
only if $sig
or $type
is used.Modifier and Type | Field | Description |
---|---|---|
static boolean |
useContextClassLoader |
Specifies how a
java.lang.Class object is loaded. |
Constructor | Description |
---|---|
Desc() |
Modifier and Type | Method | Description |
---|---|---|
static Class<?> |
getClazz(String name) |
Interprets the given class name.
|
static Class<?>[] |
getParams(String desc) |
Interprets the given type descriptor representing a method
signature.
|
static Class<?> |
getType(String desc) |
Interprets the given type descriptor.
|
public static boolean useContextClassLoader
java.lang.Class
object is loaded.
If true, it is loaded by:
Thread.currentThread().getContextClassLoader().loadClass()
If false, it is loaded by Class.forName()
.
The default value is false.
public static Class<?> getClazz(String name)
$class
.public static Class<?>[] getParams(String desc)
$sig
.Copyright © 2018 Shigeru Chiba, www.javassist.org. All rights reserved.