public static String getInternalType ( String type ) { String internalType = null ; if ( "byte" . equals ( type ) ) { internalType = "B" ; } else if ( "char" . equals ( type ) ) { internalType = "C" ; } else if ( "double" . equals ( type ) ) { internalType = "D" ; } else if ( "float" . equals ( type ) ) { internalType = "F" ; } else if ( "int" . equals ( type ) ) { internalType = "I" ; } else if ( "long" . equals ( type ) ) { internalType = "J" ; } else if ( "short" . equals ( type ) ) { internalType = "S" ; } else if ( "boolean" . equals ( type ) ) { internalType = "Z" ; } else if ( "void" . equals ( type ) ) { internalType = "V" ; } else if ( type != null ) { // I think this will fail for inner classes, but we don't really // support inner class generation at the moment internalType = type . replace ( ' ' , ' ' ) ; } return internalType ; }
Returns the corresponding internal type representation for the given type .