예제 #1
0
 private Object newHasUsingStatement()
     throws ClassNotFoundException, InstantiationException, IllegalAccessException {
   final String cls = "gw.internal.gosu.compiler.sample.statement.HasUsingStatement";
   Class<?> javaClass = GosuClassLoader.instance().findClass(cls);
   assertNotNull(javaClass);
   assertEquals(cls, javaClass.getName());
   assertNotNull(javaClass.newInstance());
   return javaClass.newInstance();
 }
 private Object newTestArrayAccess()
     throws ClassNotFoundException, InstantiationException, IllegalAccessException {
   final String cls = "gw.internal.gosu.compiler.sample.expression.TestMemberExpansionAccess";
   Class<?> javaClass = GosuClassLoader.instance().findClass(cls);
   assertNotNull(javaClass);
   assertEquals(cls, javaClass.getName());
   assertNotNull(javaClass.newInstance());
   return javaClass.newInstance();
 }