@ SuppressWarnings ( "static-method" ) protected JvmType newType ( String pythonName ) { final JvmGenericType type = TypesFactory . eINSTANCE . createJvmGenericType ( ) ; final int index = pythonName . indexOf ( "." ) ; //$NON-NLS-1$ if ( index <= 0 ) { type . setSimpleName ( pythonName ) ; } else { type . setPackageName ( pythonName . substring ( 0 , index - 1 ) ) ; type . setSimpleName ( pythonName . substring ( index + 1 ) ) ; } return type ; }
Create a JvmType for a Python type .