Example: JClass property (JavaMethod class)

This script displays a message box with the method name in the title and the class it belongs to in the message.

Sub Test (myMethod As JavaMethod)
' JClass property of JavaMethod
' is an instance of JavaClass
MessageBox "Belongs to " & myMethod.JClass.ClassName _
	& " Class",, "Method " & myMethod.MethodName
End Sub