Update of /cvsroot/xdoclet/xdoclet/core/src/xdoclet/tagshandler
In directory sc8-pr-cvs1:/tmp/cvs-serv31564/xdoclet/core/src/xdoclet/tagshandler

Modified Files:
        MethodTagsHandler.java TypeTagsHandler.java 
Log Message:
Introduced a new Interface in XJavaDoc: xjavadoc.Type. This interface provides about 
the XClass AND the dimension.

Index: MethodTagsHandler.java
===================================================================
RCS file: 
/cvsroot/xdoclet/xdoclet/core/src/xdoclet/tagshandler/MethodTagsHandler.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** MethodTagsHandler.java      5 Feb 2003 23:49:34 -0000       1.24
--- MethodTagsHandler.java      20 Mar 2003 22:36:09 -0000      1.25
***************
*** 30,34 ****
      public static String getMethodTypeFor(XMethod method)
      {
!         return method.getReturnType().getQualifiedName() + 
method.getDimensionAsString();
      }
  
--- 30,34 ----
      public static String getMethodTypeFor(XMethod method)
      {
!         return method.getReturnType().getType().getQualifiedName() + 
method.getReturnType().getDimensionAsString();
      }
  
***************
*** 161,165 ****
          else if (getCurrentMethod().getName().startsWith("set")) {
              // for boolean here we don't know if it is get or is, lets find it
!             String[] params = 
{getCurrentMethod().getReturnType().getQualifiedName()};
  
              if (hasMethod(getCurrentClass(), "is" + methodNameWithoutPrefix(), 
params, false)) {
--- 161,165 ----
          else if (getCurrentMethod().getName().startsWith("set")) {
              // for boolean here we don't know if it is get or is, lets find it
!             String[] params = 
{getCurrentMethod().getReturnType().getType().getQualifiedName()};
  
              if (hasMethod(getCurrentClass(), "is" + methodNameWithoutPrefix(), 
params, false)) {

Index: TypeTagsHandler.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/tagshandler/TypeTagsHandler.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** TypeTagsHandler.java        21 Nov 2002 17:26:40 -0000      1.11
--- TypeTagsHandler.java        20 Mar 2003 22:36:10 -0000      1.12
***************
*** 169,177 ****
       * Gets the PrimitiveOrString attribute of the TypeTagsHandler class
       *
!      * @param value                 Describe what the parameter does
!      * @return                      The PrimitiveOrString value
!      * @exception XDocletException  Describe the exception
       */
!     private static boolean isPrimitiveOrString(String value) throws XDocletException
      {
          return isPrimitiveType(value) || value.equals("java.lang.String") || 
value.equals("String");
--- 169,176 ----
       * Gets the PrimitiveOrString attribute of the TypeTagsHandler class
       *
!      * @param value  Describe what the parameter does
!      * @return       The PrimitiveOrString value
       */
!     private static boolean isPrimitiveOrString(String value)
      {
          return isPrimitiveType(value) || value.equals("java.lang.String") || 
value.equals("String");
***************
*** 408,413 ****
              }
              else if (value.equalsIgnoreCase("return-type")) {
!                 currentType = getCurrentMethod().getReturnType();
!                 curDimStr = getCurrentMethod().getDimensionAsString();
              }
              else {
--- 407,412 ----
              }
              else if (value.equalsIgnoreCase("return-type")) {
!                 currentType = getCurrentMethod().getReturnType().getType();
!                 curDimStr = 
getCurrentMethod().getReturnType().getDimensionAsString();
              }
              else {



-------------------------------------------------------
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

Reply via email to