public String getJavaType ( boolean wrapArray ) { String t = "" ; if ( type . equals ( "string" ) ) { t = "String" ; } else if ( type . equals ( "float" ) ) { t = "Double" ; } else if ( type . equals ( "int" ) ) { t = "Long" ; } else if ( type . equals ( "bool" ) ) { t = "Boolean" ; } else { t = type ; } if ( wrapArray && isArray ) { return t + "[]" ; } else { return t ; } }
Returns the Java type this type maps to . Used by Idl2Java code generator .