Update of /cvsroot/xdoclet/xdoclet/modules/xdoclet/src/xdoclet/modules/doc
In directory
sc8-pr-cvs1:/tmp/cvs-serv31564/xdoclet/modules/xdoclet/src/xdoclet/modules/doc
Modified Files:
AntdocSubTask.java
Log Message:
Introduced a new Interface in XJavaDoc: xjavadoc.Type. This interface provides about
the XClass AND the dimension.
Index: AntdocSubTask.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/modules/xdoclet/src/xdoclet/modules/doc/AntdocSubTask.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** AntdocSubTask.java 30 Oct 2002 02:02:31 -0000 1.12
--- AntdocSubTask.java 20 Mar 2003 22:35:58 -0000 1.13
***************
*** 189,203 ****
if (method.isPublic()) {
! if (method.getName().startsWith("create") &&
method.getParameters().size() == 0 && method.getDimension() == 0) {
// public AntElementClass createFoo()
! clazz = method.getReturnType();
name = Introspector.decapitalize(method.getName().substring(6));
}
! else if (method.getName().startsWith("add") &&
method.getParameters().size() == 1 &&
method.getReturnType().getQualifiedName().equals("void")) {
// public void addFoo(AntElementClass ne)
clazz = ((XParameter)
method.getParameters().iterator().next()).getType();
name = Introspector.decapitalize(method.getName().substring(3));
}
! else if (method.getName().startsWith("addConfigured") &&
method.getParameters().size() == 1 &&
method.getReturnType().getQualifiedName().equals("void")) {
// public void addFoo(AntElementClass ne)
clazz = ((XParameter)
method.getParameters().iterator().next()).getType();
--- 189,203 ----
if (method.isPublic()) {
! if (method.getName().startsWith("create") &&
method.getParameters().size() == 0 && method.getReturnType().getDimension() == 0) {
// public AntElementClass createFoo()
! clazz = method.getReturnType().getType();
name = Introspector.decapitalize(method.getName().substring(6));
}
! else if (method.getName().startsWith("add") &&
method.getParameters().size() == 1 &&
method.getReturnType().getType().getQualifiedName().equals("void")) {
// public void addFoo(AntElementClass ne)
clazz = ((XParameter)
method.getParameters().iterator().next()).getType();
name = Introspector.decapitalize(method.getName().substring(3));
}
! else if (method.getName().startsWith("addConfigured") &&
method.getParameters().size() == 1 &&
method.getReturnType().getType().getQualifiedName().equals("void")) {
// public void addFoo(AntElementClass ne)
clazz = ((XParameter)
method.getParameters().iterator().next()).getType();
-------------------------------------------------------
This SF.net email is sponsored by: Tablet PC.
Does your code think in ink? You could win a Tablet PC.
Get a free Tablet PC hat just for playing. What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel