source: trunk/abcl/src/org/armedbear/lisp/DocString.java

Last change on this file was 13332, checked in by Mark Evenson, 13 years ago

Expand the Java docstring annotation to include a separate field for return values.

The use of the "arg1 arg1 => return-value1, [return-value2 ...]"
caused problems with interpolating the value of the DocString?.args as
a list of symbols as the commas have no matching backquote operator.

File size: 2.1 KB
Line 
1/*
2 * DocString.java
3 *
4 * Copyright (C) 2010 Matt Seddon
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19 *
20 * As a special exception, the copyright holders of this library give you
21 * permission to link this library with independent modules to produce an
22 * executable, regardless of the license terms of these independent
23 * modules, and to copy and distribute the resulting executable under
24 * terms of your choice, provided that you also meet, for each linked
25 * independent module, the terms and conditions of the license of that
26 * module.  An independent module is a module which is not derived from
27 * or based on this library.  If you modify this library, you may extend
28 * this exception to your version of the library, but you are not
29 * obligated to do so.  If you do not wish to do so, delete this
30 * exception statement from your version.
31 */
32package org.armedbear.lisp;
33
34import java.lang.annotation.*;
35
36/**
37 * An annotation type to expose documentation to ABCL.
38 * <i>Note:</i> the TAGS ant target also pulls information from here. It
39 * expects <tt>name</tt> to be the first item in the DocString declaration,
40 * and not broken onto multiple lines.
41 */
42@Retention(RetentionPolicy.RUNTIME)
43public @interface DocString {
44    /** The lisp name. */
45    public String name() default "";
46    /** The arguments. */
47    public String args() default "";
48    /** The return value(s) of a function */
49    public String returns() default "";
50    /** The documentation string. */
51    public String doc() default "";
52}
Note: See TracBrowser for help on using the repository browser.