Java Utililty Methods Type Convert

List of utility methods to do Type Convert

Description

The list of methods to do Type Convert are organized into topic(s).

Method

StringtypeToTag(String TheType)
{ method
if (isPrimitiveType(TheType)) {
    return (TheType);
} else {
    return ("<a href=\"" + TheType + ".html#_top_" + "\">" + TheType + "</a>");
StringtypeToTyperef(Class type)
Converts type to type ref.
if (type.isArray() == false) {
    if (type.isPrimitive() == false) {
        return 'L' + typeToSignature(type) + ';';
    if (type == int.class) {
        return "I";
    if (type == long.class) {
...
ClasstypeToUnboxedType(Class type)
Converts a type to its unboxed type equivalent if one exists based on the terminology specified as part of PainlessLookupUtility .
if (type == Boolean.class) {
    return boolean.class;
} else if (type == Byte.class) {
    return byte.class;
} else if (type == Short.class) {
    return short.class;
} else if (type == Character.class) {
    return char.class;
...
StringtypeToVMSignature(final String type)
type To VM Signature
String ret = type.replace('.', '/'); 
if (ret.startsWith(BOOLEAN_STRING)) {
    ret = ret.replace(BOOLEAN_STRING, BOOLEAN_CODE);
} else if (ret.startsWith(CHAR_STRING)) {
    ret = ret.replace(CHAR_STRING, CHAR_CODE);
} else if (ret.startsWith(BYTE_STRING)) {
    ret = ret.replace(BYTE_STRING, BYTE_CODE);
} else if (ret.startsWith(SHORT_STRING)) {
...