public class Desc
extends java.lang.Object
$sig
and
$type
.
This support class is required at runtime
only if $sig
or $type
is used.Modifier and Type | Field and Description |
---|---|
static boolean |
useContextClassLoader
Specifies how a
java.lang.Class object is loaded. |
Constructor and Description |
---|
Desc() |
Modifier and Type | Method and 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.
|
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 java.lang.Class getClazz(java.lang.String name)
$class
.public static java.lang.Class[] getParams(java.lang.String desc)
$sig
.public static java.lang.Class getType(java.lang.String desc)
$type
.Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.