javassist.runtime

Class Desc

public class Desc extends Object

A support class for implementing $sig and $type. This support class is required at runtime only if $sig or $type is used.
Field Summary
static booleanuseContextClassLoader
Specifies how a java.lang.Class object is loaded.
Method Summary
static ClassgetClazz(String name)
Interprets the given class name.
static Class[]getParams(String desc)
Interprets the given type descriptor representing a method signature.
static ClassgetType(String desc)
Interprets the given type descriptor.

Field Detail

useContextClassLoader

public static boolean useContextClassLoader
Specifies how a java.lang.Class object is loaded.

If true, it is loaded by:

If false, it is loaded by Class.forName(). The default value is false.

Method Detail

getClazz

public static Class getClazz(String name)
Interprets the given class name. It is used for implementing $class.

getParams

public static Class[] getParams(String desc)
Interprets the given type descriptor representing a method signature. It is used for implementing $sig.

getType

public static Class getType(String desc)
Interprets the given type descriptor. It is used for implementing $type.
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999-2006 Shigeru Chiba. All Rights Reserved.