fstab
fstab

Reputation: 5029

How to get a list of interfaces from a java class in jython?

I am using Jython within the Gephi package. I would like to have a list of the interfaces that a certain class (from java) is implementing. Is that possible in Jython?

thanks!

Upvotes: 0

Views: 114

Answers (1)

Edwin Dalorzo
Edwin Dalorzo

Reputation: 78589

The same way you would do it in Java.

For example, to list the name of the interfaces implemented by ArrayList:

from java.util import ArrayList

for interface in ArrayList.getInterfaces():
    print interface.getName()

Upvotes: 1

Related Questions