[Helma-user] prototype introspection

Michael Platzer michael.platzer at knallgrau.at
Tue Aug 29 14:22:45 CEST 2006


Anton Pirker schrieb:
> i want to introspect the prototypes in my app. i found in the changelog 
> for the version 1.5.0 of helma that there is a app.getPrototypes() to 
> get all the prototypes.
>
> now i want to know from every prototype if it extends some other 
> prototype and if yes, which one. how is this possible? is there 
> somewhere a piece of documentation about the methods of a Prototype? i 
> found nothing around.
>   
hi anton,

take a look at the javaDocs in Prototype.java
-> 
http://adele.helma.org/source/viewcvs.cgi/helma/src/helma/framework/core/Prototype.java?rev=1.52&cvsroot=hop&content-type=text/vnd.viewcvs-markup

getParentPrototype() and isInstanceOf() should do the trick.

  michi

p.s. i guess it would be a good idea to put the Helma JavaDocs somewhere 
online for easier reference.



More information about the Helma-user mailing list