Chinaunix首页 | 论坛 | 博客
  • 博客访问: 867807
  • 博文数量: 215
  • 博客积分: 10062
  • 博客等级: 上将
  • 技术积分: 2235
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-01 13:21
文章分类

全部博文(215)

文章存档

2012年(1)

2011年(24)

2009年(16)

2008年(91)

2007年(83)

我的朋友

分类:

2008-04-21 15:27:28

文件: java编程规范.rar
大小: 44KB
下载: 下载
下面的words文档中就是编程规范:
 

11.1 Java源文件范例(Java Source File Example)

下面的例子,展示了如何合理布局一个包含单一公共类的Java源程序。接口的布局与其相似。

/*

 * @(#)Blah.java        1.82 99/03/18

 *

 * Copyright (c) 2003-2005 ASPire Technologies, Inc.

 * 6/F,IER BUILDING, SOUTH AREA,SHENZHEN HI-TECH INDUSTRIAL PARK Mail Box:11# 12#.

 * All rights reserved.

 *

 * This software is the confidential and proprietary information of

 * ASPire Technologies, Inc. ("Confidential Information").  You shall not

 * disclose such Confidential Information and shall use it only in

 * accordance with the terms of the license agreement you entered into

 * with Aspire.

 */

 

 

package java.blah;

 

import java.blah.blahdy.BlahBlah;

 

/**

 * Class description goes here.

 *

 * @version     1.82 18 Mar 1999

 * @author Firstname Lastname

 */

public class Blah extends SomeClass {

    /* A class implementation comment can go here. */

 

    /** classVar1 documentation comment */

    public static int classVar1;

 

    /**

     * classVar2 documentation comment that happens to be

     * more than one line long

     */

    private static Object classVar2;

 

    /** instanceVar1 documentation comment */

    public Object instanceVar1;

 

    /** instanceVar2 documentation comment */

    protected int instanceVar2;

 

    /** instanceVar3 documentation comment */

    private Object[] instanceVar3;

 

    /**

     * ...constructor Blah documentation comment...

     */

    public Blah() {

        // ...implementation goes here...

    }

 

    /**

     * ...method doSomething documentation comment...

     */

    public void doSomething() {

        // ...implementation goes here...

    }

 

    /**

     * ...method doSomethingElse documentation comment...

     * @param someParam description

     */

    public void doSomethingElse(Object someParam) {

        // ...implementation goes here...

    }

}

阅读(794) | 评论(0) | 转发(0) |
0

上一篇:一个好的分页的存储过程

下一篇:ICO + AOP

给主人留下些什么吧!~~