/** * Returns the signature for a class. This is the kind of signature used * internally by the JVM, with one-character codes representing the basic * types. It is not suitable for printing. * * @param clazz * the class for which a signature is required * * @return The signature as a string */ String getSignature(Class<?> clazz) { String result = ""; String nextType = clazz.getName(); if(trans.containsKey(nextType)) { result = trans.get(nextType); } else { if(clazz.isArray()) { result = "[" + getSignature(clazz.getComponentType()); } else { result = "L" + nextType + ";"; } } return result; }
/** * Returns the signature for a class. This is the kind of signature used * internally by the JVM, with one-character codes representing the basic * types. It is not suitable for printing. * * @param clazz * the class for which a signature is required * * @return The signature as a string */ String getSignature(Class<?> clazz) { String result = ""; String nextType = clazz.getName(); if(trans.containsKey(nextType)) { result = trans.get(nextType); } else { if(clazz.isArray()) { result = "[" + getSignature(clazz.getComponentType()); } else { result = "L" + nextType + ";"; } } return result; }
/** * Returns the signature for a class. This is the kind of signature used * internally by the JVM, with one-character codes representing the basic * types. It is not suitable for printing. * * @param clazz * the class for which a signature is required * * @return The signature as a string */ String getSignature(Class<?> clazz) { String result = ""; String nextType = clazz.getName(); if(trans.containsKey(nextType)) { result = trans.get(nextType); } else { if(clazz.isArray()) { result = "[" + getSignature(clazz.getComponentType()); } else { result = "L" + nextType + ";"; } } return result; }
/** * Returns the signature for a class. This is the kind of signature used * internally by the JVM, with one-character codes representing the basic * types. It is not suitable for printing. * * @param clazz * the class for which a signature is required * * @return The signature as a string */ String getSignature(Class<?> clazz) { String result = ""; String nextType = clazz.getName(); if(trans.containsKey(nextType)) { result = trans.get(nextType); } else { if(clazz.isArray()) { result = "[" + getSignature(clazz.getComponentType()); } else { result = "L" + nextType + ";"; } } return result; }
/** * Returns the signature for a class. This is the kind of signature used * internally by the JVM, with one-character codes representing the basic * types. It is not suitable for printing. * * @param clazz * the class for which a signature is required * * @return The signature as a string */ String getSignature(Class<?> clazz) { String result = ""; String nextType = clazz.getName(); if(trans.containsKey(nextType)) { result = trans.get(nextType); } else { if(clazz.isArray()) { result = "[" + getSignature(clazz.getComponentType()); } else { result = "L" + nextType + ";"; } } return result; }
/** * Returns the signature for a class. This is the kind of signature used * internally by the JVM, with one-character codes representing the basic * types. It is not suitable for printing. * * @param clazz * the class for which a signature is required * * @return The signature as a string */ String getSignature(Class<?> clazz) { String result = ""; String nextType = clazz.getName(); if(trans.containsKey(nextType)) { result = trans.get(nextType); } else { if(clazz.isArray()) { result = "[" + getSignature(clazz.getComponentType()); } else { result = "L" + nextType + ";"; } } return result; }
/** * Returns the signature for a class. This is the kind of signature used * internally by the JVM, with one-character codes representing the basic * types. It is not suitable for printing. * * @param clazz * the class for which a signature is required * * @return The signature as a string */ String getSignature(Class<?> clazz) { String result = ""; String nextType = clazz.getName(); if(trans.containsKey(nextType)) { result = trans.get(nextType); } else { if(clazz.isArray()) { result = "[" + getSignature(clazz.getComponentType()); } else { result = "L" + nextType + ";"; } } return result; }