diff --git a/src/helma/doc/DocProperties.java b/src/helma/doc/DocProperties.java index d9f9ad82..e0def9a8 100644 --- a/src/helma/doc/DocProperties.java +++ b/src/helma/doc/DocProperties.java @@ -41,7 +41,7 @@ public class DocProperties extends DocFileElement { } } - protected Properties getProperties () { + public Properties getProperties () { return props; } diff --git a/src/helma/doc/DocPrototype.java b/src/helma/doc/DocPrototype.java index 4bd85b4e..44981149 100644 --- a/src/helma/doc/DocPrototype.java +++ b/src/helma/doc/DocPrototype.java @@ -62,6 +62,16 @@ public class DocPrototype extends DocDirElement { } } + public DocPrototype getParentPrototype () { + return parentPrototype; + } + + + public DocProperties getTypeProperties () { + return typeProperties; + } + + /** * runs through the prototype directory and parses all helma files */ diff --git a/src/helma/doc/DocSkin.java b/src/helma/doc/DocSkin.java index 4d5a74f2..decf09db 100644 --- a/src/helma/doc/DocSkin.java +++ b/src/helma/doc/DocSkin.java @@ -52,8 +52,14 @@ public class DocSkin extends DocFileElement { if (j > i+2) { String str = (new String (source, i+2, j-i)).trim (); str = str.substring (0, str.indexOf(" ")); - if (!partBuffer.contains(str)) + if (str.indexOf(".")>-1 && + (str.startsWith ("param.") + || str.startsWith ("response.") + || str.startsWith("request.") + || str.startsWith ("session.") + ) && !partBuffer.contains(str)) { partBuffer.add (str); + } start = j+2; } i = j+1; diff --git a/src/helma/doc/DocTag.java b/src/helma/doc/DocTag.java index 6f5d3aed..a63eddf2 100644 --- a/src/helma/doc/DocTag.java +++ b/src/helma/doc/DocTag.java @@ -7,13 +7,15 @@ public final class DocTag { // for public use we have less types than // internally. eg, we're combining "return" and "returns" // or "arg" and "param". - // those that aren't combined, need to match the index of + // the values here have to match the index of // the tags-array! public static final int PARAMETER = 0; public static final int RETURN = 2; public static final int AUTHOR = 4; public static final int VERSION = 5; public static final int SEE = 6; + public static final int DEPRECATED = 7; + public static final int OVERRIDES = 8; public static final String[][] tags = { {"@arg","Argument"}, @@ -22,47 +24,50 @@ public final class DocTag { {"@returns","Returns"}, {"@author","Author"}, {"@version","Version"}, - {"@see","See also"} + {"@see","See also"}, + {"@deprecated", "Deprecated"}, + {"@overrides", "Overrides"} }; private String name; - // kind is for internal use, type is external + // "kind" is for internal use, "type" is external private int kind; private String text; - public static boolean isTagStart (String rawLine) { - rawLine = rawLine.trim (); - for (int i=0; i -1) + return true; + else + return false; } public static DocTag parse (String rawTag) throws DocException { - rawTag = rawTag.trim (); - int kind = -1; - for (int i=0; i