Re: Get java.lang.Class type of a class

Hrishikesh P <[email protected]>
Newsgroups gmane.comp.lang.jython.user
Message-ID <CABbqrYmrTH5M5uNXVRgWCZq=QM6SBanpm05KH=odyyCchCJyBw@mail.gmail.com>
Awesome! Python (jython) keeps exceeding my expectations.

On Thu, Jul 9, 2015 at 11:11 AM, Tim Dudgeon <[email protected]> wrote:

>  I think you just use Test (no .class).
>
> Tim
>
>
> On 09/07/2015 15:48, Hrishikesh P wrote:
>
>  Hi,
>
>  How can I pass in the java class type to a method in Jython?
>
>  What I need to do is:
>
>  for method in tClass.getClass().getDeclaredMethods():
>
>     if method.isAnnotationPresent(Test.class):
>
>         # do something
>
>
>  but I cannot seem to pass in the Test.class as an argument.
>
>
>  Thanks.
>
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.https://www.gigenetcloud.com/
>
>
>
> _______________________________________________
> Jython-users mailing [email protected]://lists.sourceforge.net/lists/listinfo/jython-users
>
>
>
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Jython-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jython-users
>
>

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/

_______________________________________________
Jython-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.