📄 javaformat.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0031)http://www.xiaopu.com/topic.htm -->
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content="MSHTML 5.00.3103.1000" name=GENERATOR></HEAD>
<BODY>msnavigation-->
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>msnavigation-->
<TD vAlign=top>
<H1 align=center class=banner><A name="XE_Java 编程指南"></A><A
name="XE_编程指南文档__Java 编程指南"></A>Java 编程指南</H1><FONT size=2>
<H5>版权所有 ? 1999 Scott Ambler, Ambysoft, Inc.</H5>
<H5>Java 编程指南由 Scott Ambler, Ambysoft Inc., <A
href="http://www.ambysoft.com/" target=_blank>http://www.ambysoft.com/</A>
公司授权使用。文档经重新编排后用于 Rational Unified Process。</FONT></H5>
<HR align=left>
<H1><A name=Top>目录</A></H1>
<OL>
<LI><BIG><STRONG><A
href="http://www.xiaopu.com/topic.htm#Introduction">简介</A></STRONG></BIG>
<OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Classification of Guidelines">指南分类</A>
</LI></OL>
<LI><BIG><STRONG><A
href="http://www.xiaopu.com/topic.htm#Coding Standards">程序设计标准</A></STRONG></BIG>
<OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Naming conventions">命名约定</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Documentation conventions">注释约定</A>
<OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Types of Java Comments">Java
注释语句类型</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#A Quick Overview of javadoc">快速浏览
<EM>javadoc</EM></A> </LI></OL></LI></OL>
<LI><BIG><STRONG><A
href="http://www.xiaopu.com/topic.htm#Standards For Member Functions">成员函数标准</A></STRONG></BIG>
<OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Naming Member Functions">命名成员函数</A>
<OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Naming Accessor Member Functions">命名存取成员函数</A>
<OL>
<LI><A href="http://www.xiaopu.com/topic.htm#Getters">获取函数</A>
<LI><A href="http://www.xiaopu.com/topic.htm#Setters">设置函数</A>
</LI></OL></LI></OL>
<LI><A href="http://www.xiaopu.com/topic.htm#Constructors">命名构造函数</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Member Function Visibility">成员函数可见性</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Documenting Member Functions">注释成员函数</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Techniques for Writing Clean Code">编写清晰整洁的代码的技巧</A>
</LI></OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Standards For Fields"><BIG><STRONG>用于字段/属性的标准</STRONG></BIG></A>
<OL>
<LI><A href="http://www.xiaopu.com/topic.htm#Naming Fields">命名字段</A>
<OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Naming Components">命名组件</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Naming Constants">命名常量</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Naming Collections">命名集合</A>
</LI></OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Field Visibility">字段可见性</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Documenting a Field">注释一个字段</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Using Accessor Member Functions">使用存取成员函数</A>
<OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Why Use Accessors?">为什么使用存取函数?</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Naming Accessors">命名存取函数</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Getters for Constants">常量存取函数</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Accessors for Collections">集合存取函数</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Accessing Several Fields Simultaneously">同时访问几个字段</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Visibility of Accessors">存取函数的可见性</A>
</LI></OL></LI></OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Local Variables"><BIG><STRONG>局部变量标准</STRONG></BIG></A>
<OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Naming Local Variables">命名局部变量</A>
<OL>
<LI><A href="http://www.xiaopu.com/topic.htm#Naming Streams">命名流</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Naming Loop Counters">命名循环计数器</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Naming Exception Objects">命名异常对象</A>
</LI></OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Declaring and Documenting Local Variables">声明并注释局部变量</A>
</LI></OL>
<LI><BIG><STRONG><A
href="http://www.xiaopu.com/topic.htm#Parameters to Member Functions">成员函数的参数标准</A></STRONG></BIG>
<OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Naming Parameters">命名参数</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Documenting Parameters">注释参数</A>
</LI></OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Standards For Classes, Interfaces, Packages and Compilation Units"><BIG><STRONG>类、接口、包和编译单元标准</STRONG></BIG></A>
<OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Standards for Classes">类的标准</A>
<OL>
<LI><A href="http://www.xiaopu.com/topic.htm#Naming Classes">命名类</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Documenting a Class">注释类</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Class Declarations">类的声明</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Minimize the Public and Protected Interface">最小化公共和保护接口</A>
</LI></OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Standards for Interfaces">接口标准</A>
<OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Naming Interfaces">命名接口</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Documenting Interfaces">注释接口</A>
</LI></OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Standards for Packages">包的标准</A>
<OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Naming Packages">命名包</A>
<LI><A
href="http://www.xiaopu.com/topic.htm#Documenting Packages">注释包</A>
</LI></OL>
<LI><A
href="http://www.xiaopu.com/topic.htm#Standards for Compilation Units">编译单元标准</A>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -