User object functions

Unfortunately, at some level (and it’s easy to do, so there’s no real way to tell you exactly when it will be) you “break out” of the expected areas where we’ve documented things and end up in the base Java classes that we’re using internally. Jython automatically wraps these up so they mostly seem like Python objects, so it’s hard to tell exactly when you get there.

What I generally recommend, if you’re encountering something unfamiliar and want to see what you can do with it:

  1. Start with runtime inspection. Python’s builtin dir() function is already pretty powerful, and you can supercharge it with @pturmel’s excellent introspect module:
    Finding all available methods from a component
  2. If that fails, try seeing what the class of the object is, via type(<object>), then take that and search for it in the Javadocs for your version, linked from the “SDK programmer’s guide”, on the right hand side.
4 Likes