Here is some basic code I wrote yesterday to solve the decompiling interface
class James Holmes found with *getJavaMetadata(Object)* and the
classViewer.class.

ClassViewer
http://www.cfide.org/classes/ClassViewer.class

// Basically get the class

<cfset class = createObject("java", "java.lang.Class
").forName("#form.theClass#")>

// get the method array

<cfset methods = class.getDeclaredMethods()>

// and loop

 <div id="skip">
  <ol>
 <cfoutput>
 <cfloop from="1" to="#ArrayLen(methods)#" index="i">
     <li> #methods[i].getName()#
    <cfif isArray(methods[i].getParameterTypes())>
      <cfset Array2 = methods[i].getParameterTypes()>
       (
     <cfloop from="1" to="#ArrayLen(Array2)#" index="a">

               #Array2[a].getName()#

                <cfif a LT ArrayLen(Array2)>
                ,
                </cfif>
      </cfloop>
      )
       RETURNS #methods[i].getReturnType().getName()# </li>

      </cfif>

 </cfloop>

</div>
</cfoutput>

It's so basic and simple to do . No mad java skills required.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252394
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to