| java.lang.Object net.sf.javaguard.Tools
Method Summary | |
public static boolean | isInArray(String s, String[] list) Checks whether a string is contained in a given array. | public static boolean | isInArrayIgnoreCase(String s, String[] list) Checks whether a string is contained in a given array. | public static String[] | parseDescriptor(String descriptor) Parse a method or field descriptor into a list of parameter names (for
methods) and a return type. | public static String[] | parseDescriptor(String descriptor, boolean isDisplay) Parse a method or field descriptor into a list of parameter names (for
methods) and a return type. | public static String | translate(String name) Translate a class name from the internal '/' convention to the regular
'.' one. | public static String | translateType(String inName, boolean isDisplay) Translates a type specifier from the internal JVM convention to the
Class.forName() one. |
isInArray | public static boolean isInArray(String s, String[] list)(Code) | | Checks whether a string is contained in a given array.
Parameters: s - the string to check Parameters: list - the string array true if the string is contained in the array; false else |
isInArrayIgnoreCase | public static boolean isInArrayIgnoreCase(String s, String[] list)(Code) | | Checks whether a string is contained in a given array. Capitalization is
ignored when comparing strings.
Parameters: s - the string to check Parameters: list - the string array true if the string is contained in the array; false else |
parseDescriptor | public static String[] parseDescriptor(String descriptor, boolean isDisplay) throws IllegalStateException(Code) | | Parse a method or field descriptor into a list of parameter names (for
methods) and a return type. The format is the same as the Class.forName()
method returns.
Parameters: descriptor - the method or field descriptor to parse Parameters: isDisplay - true if the pretty display form for array types should beused; false if slashes in array type names should be replaced by thedot character array with parameter names and a return type See Also: Tools.parseDescriptor(String) throws: IllegalStateException - if an error occurs |
translate | public static String translate(String name)(Code) | | Translate a class name from the internal '/' convention to the regular
'.' one.
Parameters: name - the class name to translate translated class name |
translateType | public static String translateType(String inName, boolean isDisplay) throws IllegalStateException(Code) | | Translates a type specifier from the internal JVM convention to the
Class.forName() one.
Parameters: inName - the type specifier to translate Parameters: isDisplay - true if the pretty display form for array types should bereturned; false if slashes in array type names should be replaced by thedot charactoer translated type throws: IllegalStateException - if an error occurs |
|
|