From 747830729f8f7d7af0977aced5e597b7d2d8e456 Mon Sep 17 00:00:00 2001 From: Lorenzo Bettini Date: Mon, 2 Jan 2006 17:50:00 +0000 Subject: Initial revision --- doc/SimpleClass.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 doc/SimpleClass.java (limited to 'doc/SimpleClass.java') diff --git a/doc/SimpleClass.java b/doc/SimpleClass.java new file mode 100644 index 0000000..2717434 --- /dev/null +++ b/doc/SimpleClass.java @@ -0,0 +1,26 @@ +/** + * This is a simple class that demonstrate the + * use of source-highlight to produce javadoc + * embeddable code: + * + * + *
 
+ * /* 
+ *  this is an example of code to be included
+ *  in the javadoc documentation of SimpleClass
+ * */
+ * import simpleclass.*;
+ *
+ * // code snippet
+ * SimpleClass s = new SimpleClass(150);
+ * if (s == null && true) {
+ * throw new SimpleClassException("failed to create");
+ * }
+ * System.out.println("this is a simple class" + s);
+ * 
+ * + * The previous example code was formatted with Source-highlight + */ +public class SimpleClass { + // nothing interesting :-) +} -- cgit v1.2.3

AltStyle によって変換されたページ (->オリジナル) /