|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.weld.util.bytecode.DescriptorUtils
public class DescriptorUtils
Utility class for working with method descriptors
Constructor Summary | |
---|---|
DescriptorUtils()
|
Method Summary | |
---|---|
static String |
classToStringRepresentation(Class<?> c)
|
static String[] |
descriptorStringToParameterArray(String methodDescriptor)
returns an array of String representations of the parameter types. |
static String |
getConstructorDescriptor(Constructor<?> c)
|
static String |
getMethodDescriptor(Method m)
|
static String |
getMethodDescriptor(String[] parameters,
String returnType)
|
static String[] |
getParameterTypes(Class<?>[] parameters)
|
static String[] |
getParameterTypes(Method m)
|
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 |
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[] descriptorStringToParameterArray(String methodDescriptor)
public static String classToStringRepresentation(Class<?> c)
public static boolean isPrimitive(String descriptor)
public static boolean isWide(String descriptor)
public static boolean isWide(Class<?> cls)
public static String getConstructorDescriptor(Constructor<?> c)
public static String[] getParameterTypes(Method m)
public static String[] getParameterTypes(Class<?>[] parameters)
public static String getMethodDescriptor(Method m)
public static String getMethodDescriptor(String[] parameters, String returnType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |