method = object.getClass().getDeclaredMethod(methodName);
method.setAccessible(true);
Object r = method.invoke(object);
Any direction would help.
Thanks.
var s = "This is a string"var m = s.Class.getDeclaredMethod( "checkBounds", {byte[], int, int} )m.Accessible = truem.invoke( s, {s.Bytes, 0, 1} )
--
You received this message because you are subscribed to the Google Groups "gosu-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gosu-lang+...@googlegroups.com.
To post to this group, send email to gosu...@googlegroups.com.
Visit this group at http://groups.google.com/group/gosu-lang?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
uses gw.lang.reflect.IRelativeTypeInfo
var s = "This is a string"
var type = typeof svar m = (type.TypeInfo as IRelativeTypeInfo).getMethod( type, "checkBounds", {byte[], int, int} )m.CallHandler.handleCall( s, {s.Bytes, 0, 1} )
if( type.TypeInfo typeis IRelativeTypeInfo ) {var m = type.TypeInfo.getMethod( type, "checkBounds", {byte[], int, int} )m.CallHandler.handleCall( s, {s.Bytes, 0, 1} )} else {var m = type.TypeInfo.getMethod( "checkBounds", {byte[], int, int} )m.CallHandler.handleCall( s, {s.Bytes, 0, 1} )}
Thanks Carson! I will give that a try in the morning.