dcsimg
How to get the package name of a return type of method ?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Gana_Pemmanda
Posted On:   Tuesday, June 7, 2005 10:53 AM

The following does give me the correct Full class name and the method name. But not the package name. Can anyone help? Thanks!! #set( $method = $currentMethod.name) #set( $pojoName = $method.substring(3)) #set( $pojoType = $currentMethod.returnType.getType().getName() ) #set( $pojoFullClassName = $currentMethod.returnType.getType() ) #set( $pojoPackage = $pojoFullClassName.substring(0, $pojoFullClassName.lastIndexOf('.')) ) #set( $packageName = $currentPackage.name ) "Full class name: " "Package Name: " "Method name: "    More>>

The following does give me the correct Full class name and the method name. But not the package name. Can anyone help?

Thanks!!


#set( $method = $currentMethod.name)
#set( $pojoName = $method.substring(3))

#set( $pojoType = $currentMethod.returnType.getType().getName() )

#set( $pojoFullClassName = $currentMethod.returnType.getType() )

#set( $pojoPackage = $pojoFullClassName.substring(0, $pojoFullClassName.lastIndexOf('.')) )

#set( $packageName = $currentPackage.name )


"Full class name: "
"Package Name: "
"Method name: "

   <<Less
About | Sitemap | Contact