| java.lang.Object edu.umd.cs.findbugs.classfile.DescriptorFactory
DescriptorFactory | public class DescriptorFactory (Code) | | Factory for creating ClassDescriptors, MethodDescriptors, and FieldDescriptors.
author: David Hovemeyer |
clearInstance | public static void clearInstance()(Code) | | |
createClassDescriptorFromDottedClassName | public static ClassDescriptor createClassDescriptorFromDottedClassName(String dottedClassName)(Code) | | |
createClassDescriptorFromFieldSignature | public static ClassDescriptor createClassDescriptorFromFieldSignature(String signature)(Code) | | Create a class descriptor from a field signature
|
createClassDescriptorFromResourceName | public static ClassDescriptor createClassDescriptorFromResourceName(String resourceName)(Code) | | Create a class descriptor from a resource name.
Parameters: resourceName - the resource name the class descriptor |
getClassDescriptor | public ClassDescriptor getClassDescriptor(String className)(Code) | | Get a ClassDescriptor for a class name in VM (slashed) format.
Parameters: className - a class name in VM (slashed) format ClassDescriptor for that class |
getClassDescriptorForDottedClassName | public ClassDescriptor getClassDescriptorForDottedClassName(String dottedClassName)(Code) | | Get a ClassDescriptor for a class name in dotted format.
Parameters: className - a class name in dotted format ClassDescriptor for that class |
getFieldDescriptor | public FieldDescriptor getFieldDescriptor(String className, String name, String signature, boolean isStatic)(Code) | | Get a FieldDescriptor.
Parameters: className - the name of the class the field belongs to, in VM format (e.g., "java/lang/String") Parameters: fieldName - the name of the field Parameters: fieldSignature - the field signature (type) Parameters: isStatic - true if field is static, false if not FieldDescriptor |
getMethodDescriptor | public MethodDescriptor getMethodDescriptor(String className, String name, String signature, boolean isStatic)(Code) | | Get a MethodDescriptor.
Parameters: className - name of the class containing the method, in VM format (e.g., "java/lang/String") Parameters: methodName - name of the method Parameters: methodSignature - signature of the method Parameters: isStatic - true if method is static, false otherwise MethodDescriptor |
instance | public static DescriptorFactory instance()(Code) | | Get the singleton instance of the DescriptorFactory.
the singleton instance of the DescriptorFactory |
isClassResource | public static boolean isClassResource(String resourceName)(Code) | | Determine whether or not the given resource name refers to a class.
Parameters: resourceName - the resource name true if the resource is a class, false otherwise |
profile | public void profile()(Code) | | |
|
|