List of utility methods to do Type Convert
String | typeToTag(String TheType) { method if (isPrimitiveType(TheType)) { return (TheType); } else { return ("<a href=\"" + TheType + ".html#_top_" + "\">" + TheType + "</a>"); |
String | typeToTyperef(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) { ... |
Class> | typeToUnboxedType(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; ... |
String | typeToVMSignature(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)) { ... |