understand_api学习总结

本文总结了使用Understand API进行源代码分析的关键类和方法,重点介绍了Db和Ent类,包括如何打开工程、获取实体信息、度量值以及绘图等操作。通过对Db和Ent类的掌握,可以进一步理解其他类的功能。文中还提供了实例,展示如何获取方法调用关系,并提及利用过滤功能输出调用关系的邻接矩阵。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Understand就像是一个编译器,只不过他分析出源码的信息,而不是生成可执行代码,Understand新建工程,先要对源代码进行分析(analysis),然后才能生成各种关系图,分析的过程就相当于编译了,分析了以后才能得到工程的architecture。

 

下面是api的一些understand类的总结:

Db class

($db,$status)=Understand::open($projectname[,$display]);参数display决定了以什么方式呈现你的源代码中的内容,比如说全大写、全小写、首字母大写等等;$status返回打开工程成功与否,打开失败的话会返回一系列响应的错误值;$db返回的是类Understand::Db()的对象;

$db->close()把当前库关闭了,以使其他的库可以使用,这是因为understand里面当一个command打开库时,其他command就不能用了,要想同时显示两项内容,在后面close();

$db->ents([$kindstring])返回一个类Understand::ents()的对象,参数用来过滤;

### ArcGIS JavaScript API Version 3.23 Documentation and Tutorials #### Overview of the ArcGIS API for JavaScript 3.23 The ArcGIS API for JavaScript is a powerful tool that allows developers to create web mapping applications using Esri's services and data[^1]. In version 3.23, this library provides extensive support for building interactive maps with rich functionality. #### Key Features Supported by Version 3.23 This particular release includes enhancements aimed at improving performance as well as new features such as better handling of large datasets on mobile devices along with improved printing capabilities within browsers supporting HTML5 canvas elements. #### Getting Started Guide To get started developing applications utilizing this API, one should familiarize oneself not only with its core concepts but also understand how it integrates seamlessly into existing workflows through libraries like Dojo or jQuery which are commonly used alongside it when crafting user interfaces. For those looking specifically towards localization efforts including Chinese language support (汉化), there exist detailed instructions covering everything from setting up development environments all way down to implementing specific functionalities ensuring compatibility across different platforms while adhering closely to best practices recommended by ESRI themselves. ```javascript // Example code snippet demonstrating initialization of map object in v3.23 require([ "esri/map", "dojo/domReady!" ], function(Map){ var map = new Map("mapDiv", { basemap: "streets", center: [-100, 40], zoom: 4 }); }); ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值