|
classfilewriter 1.0.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.classfilewriter.util.DescriptorUtils
public class DescriptorUtils
Utility class for working with method descriptors
| Constructor Summary | |
|---|---|
DescriptorUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
isPrimitive(String descriptor)
returns true if the descriptor represents a primitive type |
static boolean |
isWide(Class<?> cls)
returns true if the class represents a long or a double |
static boolean |
isWide(String descriptor)
returns true if the descriptor represents a long or a double |
static String |
makeDescriptor(Class<?> c)
|
static String |
makeDescriptor(Constructor<?> c)
|
static String |
makeDescriptor(String className)
Changes a class name to the internal form suitable for use in a descriptor string. |
static String |
methodDescriptor(Method m)
|
static String |
methodDescriptor(String[] parameters,
String returnType)
|
static String[] |
parameterDescriptors(Class<?>[] parameters)
|
static String[] |
parameterDescriptors(Method m)
|
static String[] |
parameterDescriptors(String methodDescriptor)
returns an array of String representations of the parameter types. |
static String |
returnType(String methodDescriptor)
|
static String |
validateDescriptor(String descriptor)
performs basic validation on a descriptor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DescriptorUtils()
| Method Detail |
|---|
public static String makeDescriptor(String className)
public static String makeDescriptor(Class<?> c)
public static String makeDescriptor(Constructor<?> c)
public static String[] parameterDescriptors(String methodDescriptor)
public static String[] parameterDescriptors(Method m)
public static String[] parameterDescriptors(Class<?>[] parameters)
public static String returnType(String methodDescriptor)
public static boolean isPrimitive(String descriptor)
public static boolean isWide(String descriptor)
public static boolean isWide(Class<?> cls)
public static String methodDescriptor(Method m)
public static String methodDescriptor(String[] parameters,
String returnType)
public static String validateDescriptor(String descriptor)
|
classfilewriter 1.0.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||