public class DescriptorUtils extends Object
Constructor and Description |
---|
DescriptorUtils() |
Modifier and Type | Method and Description |
---|---|
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
|
public static String[] descriptorStringToParameterArray(String methodDescriptor)
public static boolean isPrimitive(String descriptor)
public static boolean isWide(String descriptor)
public static boolean isWide(Class<?> cls)
public static String getConstructorDescriptor(Constructor<?> c)
Copyright © 2012 Seam Framework. All Rights Reserved.