| java.lang.Object org.netbeans.lib.profiler.utils.formatting.PlainFormattableMethodName
PlainFormattableMethodName | public class PlainFormattableMethodName implements Formattable(Code) | | A class that can be used to obtain Java class or method name formatted in various ways.
author: Ian Formanek author: Misha Dmitriev |
Constructor Summary | |
| PlainFormattableMethodName(String cname, String mname, String sig, int verbosity) Creates a new methodNameFormatter for given class/method/signature.
The method name and signature can be null, in which case the formatter works for class only.
Parameters: cname - A fully qualified name of the class, or null if only formatting methods- e.g. |
PlainFormattableMethodName | PlainFormattableMethodName(String cname, String mname, String sig, int verbosity)(Code) | | Creates a new methodNameFormatter for given class/method/signature.
The method name and signature can be null, in which case the formatter works for class only.
Parameters: cname - A fully qualified name of the class, or null if only formatting methods- e.g. "java/lang/String" Parameters: mname - A name of method, empty string or "" for constructors or null if method is not specified- e.g. "concat" Parameters: sig - VM signature of method or null if method is not specified or is the method- e.g. "(Ljava/lang/String;)Ljava/lang/String;" Parameters: verbosity - verbosity level: 1 = getFormattedClass(), 2 = getFormattedMethod(), 3 = getFormattedClassAndMethod(),4 = getFullFormattedMethod(), 5 = getFullFormatedClassAndMethod() |
getFormattedClass | public String getFormattedClass()(Code) | | formatted class name, using '.' to separate packages = e.g. "java.lang.String" |
getFormattedClassAndMethod | public String getFormattedClassAndMethod()(Code) | | formatted class and method name (with parameter types, but without its return type).Will return the same as getFormattedClass if method was not specified. |
getFormattedMethod | public String getFormattedMethod()(Code) | | formatted method name, with parameter types, but without the return type. Will return empty stringif method was not specified. |
getFullFormattedClassAndMethod | public String getFullFormattedClassAndMethod()(Code) | | formatted class and method name (with parameter types and return type)Will return the same as getFormattedClass if method was not specified. |
getFullFormattedMethod | public String getFullFormattedMethod()(Code) | | formatted method name with parameter types and return type (return type not used if constructor).Will return empty string if method was not specified. |
getParamsString | public String getParamsString()(Code) | | parameters of the given method - formatted string -, empty string if the method has no parameters orno method was specified |
getReturnTypeX | public String getReturnTypeX()(Code) | | return type of the given method, empty String if void or method was not specified |
|
|