@ SuppressWarnings ( "signature" ) // conversion routine protected static @ ClassGetName String typeToClassGetName ( Type t ) { if ( t instanceof ObjectType ) { return ( ( ObjectType ) t ) . getClassName ( ) ; } else if ( t instanceof BasicType ) { // Use reserved keyword for basic type rather than signature to // avoid conflicts with user defined types. return t . toString ( ) ; } else { // Array type: just convert '/' to '.' return t . getSignature ( ) . replace ( ' ' , ' ' ) ; } }
Convert a Type name to a Class name .