pub fn to_string(java_type: &JavaType) -> String {
        match *java_type {
            JavaType::Byte => "byte".to_string(),
            JavaType::Char => "char".to_string(),
            JavaType::Double => "double".to_string(),
            JavaType::Float => "float".to_string(),
            JavaType::Int => "int".to_string(),
            JavaType::Long => "long".to_string(),
            JavaType::Short => "short".to_string(),
            JavaType::Void => "void".to_string(),
            JavaType::Boolean => "boolean".to_string(),
            JavaType::Array(ref inner_type) => format!("{}[]", JavaType::to_string(inner_type)),
            JavaType::Class(cls) => cls.trim_left_matches("L").trim_right_matches(";").replace(";", "").replace("/", ".").to_string()
        }
    }
///
/// Converts the given Java type into a conventional human-readable representation
///

Converts the given Java type into a conventional human-readable representation
Converts the given Java type into a conventional human - readable representation
pub fn to_string(java_type: &JavaType) -> String {
        match *java_type {
            JavaType::Byte => "byte".to_string(),
            JavaType::Char => "char".to_string(),
            JavaType::Double => "double".to_string(),
            JavaType::Float => "float".to_string(),
            JavaType::Int => "int".to_string(),
            JavaType::Long => "long".to_string(),
            JavaType::Short => "short".to_string(),
            JavaType::Void => "void".to_string(),
            JavaType::Boolean => "boolean".to_string(),
            JavaType::Array(ref inner_type) => format!("{}[]", JavaType::to_string(inner_type)),
            JavaType::Class(cls) => cls.trim_left_matches("L").trim_right_matches(";").replace(";", "").replace("/", ".").to_string()
        }
    }
pub fn to_string ( java_type : & JavaType ) -> String { match * java_type { JavaType :: Byte => " " . to_string ( ) , JavaType :: Char => " " . to_string ( ) , JavaType :: Double => " " . to_string ( ) , JavaType :: Float => " " . to_string ( ) , JavaType :: Int => " " . to_string ( ) , JavaType :: Long => " " . to_string ( ) , JavaType :: Short => " " . to_string ( ) , JavaType :: Void => " " . to_string ( ) , JavaType :: Boolean => " " . to_string ( ) , JavaType :: Array ( ref inner_type ) => format ! ( " " JavaType to_string ( inner_type ) ) , JavaType :: Class ( cls ) => cls . trim_left_matches ( " " ) . trim_right_matches ( " " ) . replace ( " " , " " ) . replace ( " " , " " ) . to_string ( ) } }
Converts the given Java type into a conventional human-readable representation
Converts the given Java type into a conventional human - readable representation
java_type
&JavaType
java_type
&JavaType