This dissertation systematically generalizes theory , methods and techniques of software metrics , depicts an inproved software quality metrics model and brings forward a new software metrics tool architecture that based on abstract syntax tree . a software metrics tools named emmetrics is designed and implemented based on the new architecture , so metrics data can be automatically collected , analyzed and exhibited 本文系统归纳了软件度量的理论、方法和技术,改进了已有的软件质量度量模型,提出了一种以抽象语法树为核心的度量工具的体系结构,并且基于该体系结构设计并实现了一个自动化软件度量工具emmetrics ,实现了度量数据的自动采集、分析与展示。