|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.curjent.impl.asm.Type
public final class Type
A Java type. This class can be used to make it easier to manipulate type and method descriptors.
Constructor Summary | |
---|---|
Type()
|
Method Summary | |
---|---|
static String |
getDescriptor(Class<?> c)
Returns the descriptor corresponding to the given Java type. |
private static void |
getDescriptor(StringBuffer buf,
Class<?> c)
Appends the descriptor of the given class to the given string buffer. |
static String |
getInternalName(Class<?> c)
Returns the internal name of the given class. |
static String |
getMethodDescriptor(Method m)
Returns the descriptor corresponding to the given method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Type()
Method Detail |
---|
public static String getInternalName(Class<?> c)
c
- an object or array class.
public static String getDescriptor(Class<?> c)
c
- an object class, a primitive class or an array class.
public static String getMethodDescriptor(Method m)
m
- a { @link Method Method} object.
private static void getDescriptor(StringBuffer buf, Class<?> c)
buf
- the string buffer to which the descriptor must be appended.c
- the class whose descriptor must be computed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |