Package org.jboss.as.ee.utils
Class DescriptorUtils
java.lang.Object
org.jboss.as.ee.utils.DescriptorUtils
Utility class for working with method descriptors
- Author:
- Stuart Douglas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisPrimitive(String descriptor) returns true if the descriptor represents a primitive typestatic StringmakeDescriptor(Class<?> c) static StringmakeDescriptor(Constructor<?> c) static StringmakeDescriptor(String className) Changes a class name to the internal form suitable for use in a descriptor string.static Stringstatic StringmethodDescriptor(String[] parameters, String returnType) static String[]parameterDescriptors(Class<?>[] parameters) static String[]static String[]parameterDescriptors(String methodDescriptor) returns an array of String representations of the parameter types.static StringreturnType(String methodDescriptor) static StringvalidateDescriptor(String descriptor) performs basic validation on a descriptor
-
Constructor Details
-
DescriptorUtils
public DescriptorUtils()
-
-
Method Details
-
makeDescriptor
Changes a class name to the internal form suitable for use in a descriptor string. e.g. java.lang.String => Ljava/lang/String; -
makeDescriptor
-
makeDescriptor
-
parameterDescriptors
returns an array of String representations of the parameter types. Primitives are returned as their native representations, while classes are returned in the internal descriptor form e.g. Ljava/lang/Integer; -
parameterDescriptors
-
parameterDescriptors
-
returnType
-
isPrimitive
returns true if the descriptor represents a primitive type -
methodDescriptor
-
methodDescriptor
-
validateDescriptor
performs basic validation on a descriptor
-