Using Java types in Gosu
Gosu can access all members of a Java type:
- Variables
- Functions
- Properties
You access these members on a Java class or object in the same way as you access members on a Gosu type, by using dot notation syntax.
For Java methods that look like getters and setters, Gosu exposes the methods also as Gosu properties. For example, you can access a getter method such as getCurrentTime() defined in class MyClass as Gosu property MyClass.CurrentTime.
You can also use reflection to inspect Java types.
See also
