It is a shortcut. Like .quality
above is short for .getQuality()
. Jython automatically recognizes Java getters and setters that follow the NetBeans pattern and treats them as jython object attributes.
-
object.getSomething()
can be replaced withobject.something
. -
object.setSomething(newValue)
can becomeobject.something = newValue
. - For booleans,
object.isSomething()
becomesobject.something
.
This is a standard across the Java ecosystem (JSP, Struts, et cetera).