bugged
stringlengths 6
599k
| fixed
stringlengths 6
40.8M
| __index_level_0__
int64 0
3.24M
|
|---|---|---|
public RubyModule defineModuleUnder(String name, RubyModule parentModule) { throw new MockException(); }
|
public RubyModule defineModuleUnder(String name, RubyModule parentModule) { throw new MockException(); }
| 3,239,414
|
public RubyNumeric newNumeric() { throw new MockException(); }
|
public RubyNumeric newNumeric() { throw new MockException(); }
| 3,239,415
|
public RubyProc newProc() { throw new MockException(); }
|
public RubyProc newProc() { throw new MockException(); }
| 3,239,416
|
final private Template getTemplate(URL path) { _log.debug("get:"+path); URLTemplate t; String pre = null; String mid = null; String post = null; String pathStr = path.toExternalForm(); try { String[] parts = parseLocalePath(pathStr); String urlPath = null; URL url = path; if (parts == null) { urlPath = pathStr; } else { pre = parts[0]; mid = parts[1]; post = parts[2]; urlPath = pre+((mid == null) ? "" : mid)+post; url = new URL(urlPath); } if (urlPath.length() > 512) { throw new IllegalArgumentException("URL path too long: "+urlPath); } _log.debug("URLTemplateProvider: loading " + url+ "("+path+","+urlPath+")"); /* * Seems a bit wasteful to check the URL here but t.parse() * generates "spurious" errors if the template doesn't exist */ InputStream _is = null; try { _is = url.openStream(); t = new URLTemplate(_broker,url); _log.debug("**PARSING "+url); t.parse(); return t; } finally { if (_is != null) _is.close(); } } catch (IOException e) { _log.debug(e.getClass().getName()+" "+e.getMessage()); // try the next locale if (mid != null) { try { String p = buildPath(pre,mid,post); if (path != null) { return (Template) _broker.get(_TYPE,p); } else { return (Template) _broker.get(_TYPE,p); } } catch (Exception ex) { _log.debug(ex.getClass().getName()+" "+ex.getMessage()); // ignore } } _log.error("URLTemplateProvider(1): Could not load template: "+ path,e); } catch (Exception e) { _log.error("URLTemplateProvider(2): Could not load template: "+ path,e); } _log.debug("URLTemplateProvider: " + path + " not found."); return null; }
|
final private Template getTemplate(URL path) { _log.debug("get:"+path); URLTemplate t; String pre = null; String mid = null; String post = null; String pathStr = path.toExternalForm(); try { String[] parts = parseLocalePath(pathStr); String urlPath = null; URL url = path; if (parts == null) { urlPath = pathStr; } else { pre = parts[0]; mid = parts[1]; post = parts[2]; urlPath = pre+((mid == null) ? "" : mid)+post; url = new URL(urlPath); } if (urlPath.length() > 512) { throw new IllegalArgumentException("URL path too long: "+urlPath); } _log.debug("URLTemplateProvider: loading " + url+ "("+path+","+urlPath+")"); /* * Seems a bit wasteful to check the URL here but t.parse() * generates "spurious" errors if the template doesn't exist */ InputStream _is = null; try { _is = url.openStream(); t = new URLTemplate(_broker,url); _log.debug("**PARSING "+url); t.parse(); return t; } finally { if (_is != null) _is.close(); } } catch (IOException e) { _log.debug(e.getClass().getName()+" "+e.getMessage()); // try the next locale if (mid != null) { try { String p = buildPath(pre,mid,post); if (path != null) { return (Template) _broker.get(_TYPE,p); } else { return (Template) _broker.get(_TYPE,p); } } catch (Exception ex) { _log.debug(ex.getClass().getName()+" "+ex.getMessage()); // ignore } } _log.error("URLTemplateProvider(1): Could not load template: "+ path,e); } catch (Exception e) { _log.error("URLTemplateProvider(2): Could not load template: "+ path,e); } _log.debug("URLTemplateProvider: " + path + " not found."); return null; }
| 3,239,417
|
public RaiseException(RubyException actException) { this.actException = actException; }
|
public RaiseException(RubyException actException) { this.actException = actException; }
| 3,239,418
|
public RubyException getActException() { return actException; }
|
public RubyException getActException() { return actException; }
| 3,239,419
|
public void setActException(RubyException actException) { this.actException = actException; }
|
public void setActException(RubyException actException) { this.actException = actException; }
| 3,239,420
|
public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.encodeBegin(context); IWContext iwc = IWContext.getIWContext(context); String resourcePath = iwc.getParameter(ContentViewer.PARAMETER_CONTENT_RESOURCE); if(resourcePath!=null){ if("create".equals(iwc.getParameter(ContentViewer.PARAMETER_CONTENT_RESOURCE))){ //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID,"setFolderLocation",resourcePath,String.class); getArticleItemBean().setFolderLocation(resourcePath); } else { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID,"load",resourcePath,String.class); try { getArticleItemBean().load(resourcePath); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } WebDAVCategories categoriesUI = (WebDAVCategories)getCategoryEditor(); //Update the categoriesUI with the resourcePath given: if(!isInCreateMode()&& categoriesUI!=null){ //there is no resourcepath set for the article if it's about to be created categoriesUI.setResourcePath(resourcePath); } }// if(((Boolean)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID,"getLanguageChange")).booleanValue()) { String languageChange=(String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID,"getLanguageChange"); if(languageChange!=null) { String articlePath = (String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "getArticlePath"); if(null!=articlePath && articlePath.length()>0) { boolean result = ((Boolean)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "load",articlePath+"/"+languageChange+ArticleItemBean.ARTICLE_SUFFIX)).booleanValue(); if(!result) { System.out.println("Warning loading new language did not work!"); } } WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLanguageChange",""); } }
|
public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.encodeBegin(context); IWContext iwc = IWContext.getIWContext(context); String resourcePath = iwc.getParameter(ContentViewer.PARAMETER_CONTENT_RESOURCE); if(resourcePath!=null){ if("create".equals(iwc.getParameter(ContentViewer.PARAMETER_CONTENT_RESOURCE))){ //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID,"setFolderLocation",resourcePath,String.class); getArticleItemBean().setFolderLocation(resourcePath); } else { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID,"load",resourcePath,String.class); try { getArticleItemBean().load(resourcePath); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } WebDAVCategories categoriesUI = (WebDAVCategories)getCategoryEditor(); //Update the categoriesUI with the resourcePath given: if(!isInCreateMode()&& categoriesUI!=null){ //there is no resourcepath set for the article if it's about to be created categoriesUI.setResourcePath(resourcePath); } }// if(((Boolean)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID,"getLanguageChange")).booleanValue()) { String languageChange=(String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID,"getLanguageChange"); if(languageChange!=null) { String articlePath = (String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "getArticlePath"); if(null!=articlePath && articlePath.length()>0) { boolean result = ((Boolean)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "load",articlePath+"/"+languageChange+ArticleItemBean.ARTICLE_SUFFIX)).booleanValue(); if(!result) { System.out.println("Warning loading new language did not work!"); } } WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLanguageChange",""); } }
| 3,239,422
|
public static void main(final String[] args) { EnhancedDebuggerWindow.PERSISTED_DEBUGGER = true; EnhancedDebuggerWindow.MAX_TABLE_ROWS = 10; XMPPConnection.DEBUG_ENABLED = true; String current = System.getProperty("java.library.path"); String classPath = System.getProperty("java.class.path"); // Set UIManager properties for JTree System.setProperty("apple.laf.useScreenMenuBar", "true"); /** Update Library Path **/ StringBuffer buf = new StringBuffer(); buf.append(current); buf.append(";"); final String workingDirectory = System.getProperty("appdir"); if (workingDirectory == null) { RESOURCE_DIRECTORY = new File(USER_HOME, "/Spark/resources").getAbsoluteFile(); BIN_DIRECTORY = new File(USER_HOME, "/Spark/bin").getAbsoluteFile(); LOG_DIRECTORY = new File(USER_HOME, "/Spark/logs").getAbsoluteFile(); RESOURCE_DIRECTORY.mkdirs(); LOG_DIRECTORY.mkdirs(); if (!RESOURCE_DIRECTORY.exists() || !LOG_DIRECTORY.exists()) { JOptionPane.showMessageDialog(new JFrame(), "Unable to create directories necessary for runtime.", "Spark Error", JOptionPane.ERROR_MESSAGE); System.exit(1); } } else { // This is the installed executable. File workingDir = new File(workingDirectory); RESOURCE_DIRECTORY = new File(workingDir, "resources").getAbsoluteFile(); BIN_DIRECTORY = new File(workingDir, "bin").getAbsoluteFile(); LOG_DIRECTORY = new File(USER_HOME, "/Spark/logs").getAbsoluteFile(); LOG_DIRECTORY.mkdirs(); buf.append(RESOURCE_DIRECTORY.getAbsolutePath()).append(";"); } buf.append(classPath); // Update System Properties System.setProperty("java.library.path", buf.toString()); System.setProperty("sun.java2d.noddraw", "true"); SwingUtilities.invokeLater(new Runnable() { public void run() { // Start Application new Spark(); } }); // Handle arguments if (args.length > 0) { argument = args[0]; } }
|
public static void main(final String[] args) { EnhancedDebuggerWindow.PERSISTED_DEBUGGER = true; EnhancedDebuggerWindow.MAX_TABLE_ROWS = 10; XMPPConnection.DEBUG_ENABLED = true; String current = System.getProperty("java.library.path"); String classPath = System.getProperty("java.class.path"); // Set UIManager properties for JTree System.setProperty("apple.laf.useScreenMenuBar", "true"); /** Update Library Path **/ StringBuffer buf = new StringBuffer(); buf.append(current); buf.append(";"); final String workingDirectory = System.getProperty("appdir"); if (workingDirectory == null) { RESOURCE_DIRECTORY = new File(USER_HOME, "/Spark/resources").getAbsoluteFile(); BIN_DIRECTORY = new File(USER_HOME, "/Spark/bin").getAbsoluteFile(); LOG_DIRECTORY = new File(USER_HOME, "/Spark/logs").getAbsoluteFile(); RESOURCE_DIRECTORY.mkdirs(); LOG_DIRECTORY.mkdirs(); if (!RESOURCE_DIRECTORY.exists() || !LOG_DIRECTORY.exists()) { JOptionPane.showMessageDialog(new JFrame(), "Unable to create directories necessary for runtime.", "Spark Error", JOptionPane.ERROR_MESSAGE); System.exit(1); } } else { // This is the installed executable. File workingDir = new File(workingDirectory); RESOURCE_DIRECTORY = new File(workingDir, "resources").getAbsoluteFile(); BIN_DIRECTORY = new File(workingDir, "bin").getAbsoluteFile(); LOG_DIRECTORY = new File(USER_HOME, "/Spark/logs").getAbsoluteFile(); LOG_DIRECTORY.mkdirs(); try { buf.append(RESOURCE_DIRECTORY.getCanonicalPath()).append(";"); } catch (IOException e) { e.printStackTrace(); } } buf.append(classPath); // Update System Properties System.setProperty("java.library.path", buf.toString()); System.setProperty("sun.java2d.noddraw", "true"); SwingUtilities.invokeLater(new Runnable() { public void run() { // Start Application new Spark(); } }); // Handle arguments if (args.length > 0) { argument = args[0]; } }
| 3,239,423
|
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); try { while (true) { try { String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ruby.getBlock().flags &= ~RubyBlock.BLOCK_D_SCOPE; RubyBlock tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject recv = getIterNode().eval(ruby, self); ArgsUtil.endCallArgs(ruby, tmpBlock); ruby.setSourceFile(file); ruby.setSourceLine(line); return recv.getRubyClass().call(recv, "each", null, 0); } catch (RetryException rExcptn) { } } } catch (ReturnException rExcptn) { return rExcptn.getReturnValue(); } catch (BreakException bExcptn) { return ruby.getNil(); } finally { ruby.getIter().pop(); ruby.getBlock().pop(); } }
|
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); try { while (true) { try { String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ruby.getBlock().flags &= ~RubyBlock.BLOCK_D_SCOPE; RubyBlock tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject recv = getIterNode().eval(ruby, self); ArgsUtil.endCallArgs(ruby, tmpBlock); ruby.setSourceFile(file); ruby.setSourceLine(line); return recv.getRubyClass().call(recv, "each", null, 0); } catch (RetryException rExcptn) { } } } catch (ReturnException rExcptn) { return rExcptn.getReturnValue(); } catch (BreakJump bExcptn) { return ruby.getNil(); } finally { ruby.getIter().pop(); ruby.getBlock().pop(); } }
| 3,239,424
|
public Object createService(ServiceContext serviceContext) { createException = new MockCreateException(); if (throwExceptionFromCreate) throw createException; return super.createService(serviceContext); }
|
public Object createService(ServiceContext serviceContext) { assertValidServiceContext(serviceContext); this.serviceContext = serviceContext; createException = new MockCreateException("MockCreateException"); if (throwExceptionFromCreate) throw createException; return super.createService(serviceContext); }
| 3,239,425
|
public void destroyService(ServiceContext serviceContext) { destroyException = new MockDestroyException(); if (throwExceptionFromDestroy) throw destroyException; super.destroyService(serviceContext); }
|
public void destroyService(ServiceContext serviceContext) { assertSame(this.serviceContext, serviceContext); assertValidServiceContext(serviceContext); destroyException = new MockDestroyException("MockDestroyException"); if (throwExceptionFromDestroy) throw destroyException; super.destroyService(serviceContext); }
| 3,239,426
|
public Set getStartConditions() { Set startConditions = new HashSet(super.getStartConditions()); startConditions.add(startCondition); return startConditions; }
|
public synchronized Set getStartConditions() { Set startConditions = new HashSet(super.getStartConditions()); startConditions.add(startCondition); return startConditions; }
| 3,239,427
|
public Set getStopConditions() { Set stopConditions = new HashSet(super.getStopConditions()); stopConditions.add(stopCondition); return stopConditions; }
|
public synchronized Set getStopConditions() { Set stopConditions = new HashSet(super.getStopConditions()); stopConditions.add(stopCondition); return stopConditions; }
| 3,239,428
|
private void destroy(StopStrategy stopStrategy) { ServiceState initialState = serviceManager.getState(); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.destroy(stopStrategy); } catch (IllegalServiceStateException e) { assertFalse(stopCondition.satisfied); assertSame(StopStrategies.ASYNCHRONOUS, stopStrategy); } catch (UnsatisfiedConditionsException e) { assertFalse(stopCondition.satisfied); assertSame(StopStrategies.SYNCHRONOUS, stopStrategy); assertTrue(e.getUnsatisfiedConditions().contains(stopCondition)); } if (serviceFactory.restartable || initialState == ServiceState.STOPPED) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); // verify expected events fired assertNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.waitingToStop); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNotNull(serviceMonitor.unregistered); } else if (!stopCondition.satisfied && stopStrategy != StopStrategies.FORCE) { assertSame(ServiceState.RUNNING, serviceManager.getState()); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); assertTrue(serviceManager.getStartTime() > 0); assertNotNull(serviceManager.getService()); assertNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); if (stopStrategy == StopStrategies.ASYNCHRONOUS) { assertNotNull(serviceMonitor.waitingToStop); assertTrue(serviceMonitor.waitingToStop.getUnsatisfiedConditions().contains(stopCondition)); } else { assertNull(serviceMonitor.waitingToStop); } assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); } else if (serviceFactory.throwExceptionFromDestroy != true) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNotNull(serviceMonitor.stopping); assertNull(serviceMonitor.waitingToStop); if (!stopCondition.satisfied && stopStrategy == StopStrategies.FORCE) { assertNotNull(serviceMonitor.stopError); } else { assertNull(serviceMonitor.stopError); } assertNotNull(serviceMonitor.stopped); assertNotNull(serviceMonitor.unregistered); if (!stopCondition.satisfied && stopStrategy == StopStrategies.FORCE) { assertEquals(serviceMonitor.stopError.getEventId() + 1, serviceMonitor.stopping.getEventId()); assertEquals(serviceMonitor.stopError.getEventId() + 2, serviceMonitor.stopped.getEventId()); assertEquals(serviceMonitor.stopError.getEventId() + 3, serviceMonitor.unregistered.getEventId()); } else { assertEquals(serviceMonitor.stopping.getEventId() + 1, serviceMonitor.stopped.getEventId()); assertEquals(serviceMonitor.stopping.getEventId() + 2, serviceMonitor.unregistered.getEventId()); } assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertTrue(startCondition.destroyCalled); // There is no way to determine if the init should have been called // stopCondition.initializeCalled assertTrue(stopCondition.isSatisfiedCalled); assertTrue(stopCondition.destroyCalled); } else { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNotNull(serviceMonitor.stopping); assertNull(serviceMonitor.waitingToStop); assertNotNull(serviceMonitor.stopError); assertNotNull(serviceMonitor.stopped); assertNotNull(serviceMonitor.unregistered); assertEquals(serviceMonitor.stopping.getEventId() + 1, serviceMonitor.stopError.getEventId()); assertEquals(serviceMonitor.stopping.getEventId() + 2, serviceMonitor.stopped.getEventId()); assertEquals(serviceMonitor.stopping.getEventId() + 3, serviceMonitor.unregistered.getEventId()); assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertTrue(startCondition.destroyCalled); assertTrue(stopCondition.initializeCalled); assertTrue(stopCondition.isSatisfiedCalled); assertTrue(stopCondition.destroyCalled); } }
|
private void destroy(StopStrategy stopStrategy) { ServiceState initialState = serviceManager.getState(); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.destroy(stopStrategy); } catch (IllegalServiceStateException e) { assertFalse(stopCondition.satisfied); assertSame(StopStrategies.ASYNCHRONOUS, stopStrategy); } catch (UnsatisfiedConditionsException e) { assertFalse(stopCondition.satisfied); assertSame(StopStrategies.SYNCHRONOUS, stopStrategy); assertTrue(e.getUnsatisfiedConditions().contains(stopCondition)); } if (serviceFactory.restartable || initialState == ServiceState.STOPPED) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); // verify expected events fired assertNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.waitingToStop); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNotNull(serviceMonitor.unregistered); } else if (!stopCondition.satisfied && stopStrategy != StopStrategies.FORCE) { assertSame(ServiceState.RUNNING, serviceManager.getState()); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); assertTrue(serviceManager.getStartTime() > 0); assertNotNull(serviceManager.getService()); assertNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); if (stopStrategy == StopStrategies.ASYNCHRONOUS) { assertNotNull(serviceMonitor.waitingToStop); assertTrue(serviceMonitor.waitingToStop.getUnsatisfiedConditions().contains(stopCondition)); } else { assertNull(serviceMonitor.waitingToStop); } assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); } else if (!serviceFactory.throwExceptionFromDestroy) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNotNull(serviceMonitor.stopping); assertNull(serviceMonitor.waitingToStop); if (!stopCondition.satisfied && stopStrategy == StopStrategies.FORCE) { assertNotNull(serviceMonitor.stopError); } else { assertNull(serviceMonitor.stopError); } assertNotNull(serviceMonitor.stopped); assertNotNull(serviceMonitor.unregistered); if (!stopCondition.satisfied && stopStrategy == StopStrategies.FORCE) { assertEquals(serviceMonitor.stopError.getEventId() + 1, serviceMonitor.stopping.getEventId()); assertEquals(serviceMonitor.stopError.getEventId() + 2, serviceMonitor.stopped.getEventId()); assertEquals(serviceMonitor.stopError.getEventId() + 3, serviceMonitor.unregistered.getEventId()); } else { assertEquals(serviceMonitor.stopping.getEventId() + 1, serviceMonitor.stopped.getEventId()); assertEquals(serviceMonitor.stopping.getEventId() + 2, serviceMonitor.unregistered.getEventId()); } assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertTrue(startCondition.destroyCalled); // There is no way to determine if the init should have been called // stopCondition.initializeCalled assertTrue(stopCondition.isSatisfiedCalled); assertTrue(stopCondition.destroyCalled); } else { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNotNull(serviceMonitor.stopping); assertNull(serviceMonitor.waitingToStop); assertNotNull(serviceMonitor.stopError); assertNotNull(serviceMonitor.stopped); assertNotNull(serviceMonitor.unregistered); assertEquals(serviceMonitor.stopping.getEventId() + 1, serviceMonitor.stopError.getEventId()); assertEquals(serviceMonitor.stopping.getEventId() + 2, serviceMonitor.stopped.getEventId()); assertEquals(serviceMonitor.stopping.getEventId() + 3, serviceMonitor.unregistered.getEventId()); assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertTrue(startCondition.destroyCalled); assertTrue(stopCondition.initializeCalled); assertTrue(stopCondition.isSatisfiedCalled); assertTrue(stopCondition.destroyCalled); } }
| 3,239,441
|
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.initialize(); } catch (MockCreateException e) { assertTrue(serviceFactory.throwExceptionFromCreate == true); assertSame(serviceFactory.createException, e); } catch (UnsatisfiedConditionsException e) { assertTrue(startCondition.satisfied == false); assertTrue(e.getUnsatisfiedConditions().contains(startCondition)); } catch (IllegalServiceStateException e) { assertFalse(serviceFactory.isEnabled()); } assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); if (serviceFactory.restartable) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNotNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.waitingToStop); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else if (!serviceFactory.isEnabled()) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else if (serviceFactory.throwExceptionFromCreate != true && startCondition.satisfied == true) { assertSame(ServiceState.RUNNING, serviceManager.getState()); assertSame(SERVICE, serviceManager.getService()); assertTrue(serviceManager.getStartTime() > now); assertNotNull(serviceMonitor.registered); assertNotNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNotNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertEquals(serviceMonitor.registered.getEventId() + 1, serviceMonitor.starting.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 2, serviceMonitor.running.getEventId()); assertTrue(startCondition.initializeCalled); assertTrue(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNotNull(serviceMonitor.registered); assertNotNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNotNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNotNull(serviceMonitor.stopped); assertNotNull(serviceMonitor.unregistered); assertEquals(serviceMonitor.registered.getEventId() + 1, serviceMonitor.starting.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 2, serviceMonitor.stopping.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 3, serviceMonitor.stopped.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 4, serviceMonitor.unregistered.getEventId()); assertTrue(startCondition.initializeCalled); assertTrue(startCondition.isSatisfiedCalled); assertTrue(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } }
|
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.initialize(); } catch (MockCreateException e) { assertTrue(serviceFactory.throwExceptionFromCreate); assertSame(serviceFactory.createException, e); } catch (UnsatisfiedConditionsException e) { assertTrue(startCondition.satisfied == false); assertTrue(e.getUnsatisfiedConditions().contains(startCondition)); } catch (IllegalServiceStateException e) { assertFalse(serviceFactory.isEnabled()); } assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); if (serviceFactory.restartable) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNotNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.waitingToStop); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else if (!serviceFactory.isEnabled()) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else if (serviceFactory.throwExceptionFromCreate != true && startCondition.satisfied == true) { assertSame(ServiceState.RUNNING, serviceManager.getState()); assertSame(SERVICE, serviceManager.getService()); assertTrue(serviceManager.getStartTime() > now); assertNotNull(serviceMonitor.registered); assertNotNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNotNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertEquals(serviceMonitor.registered.getEventId() + 1, serviceMonitor.starting.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 2, serviceMonitor.running.getEventId()); assertTrue(startCondition.initializeCalled); assertTrue(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNotNull(serviceMonitor.registered); assertNotNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNotNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNotNull(serviceMonitor.stopped); assertNotNull(serviceMonitor.unregistered); assertEquals(serviceMonitor.registered.getEventId() + 1, serviceMonitor.starting.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 2, serviceMonitor.stopping.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 3, serviceMonitor.stopped.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 4, serviceMonitor.unregistered.getEventId()); assertTrue(startCondition.initializeCalled); assertTrue(startCondition.isSatisfiedCalled); assertTrue(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } }
| 3,239,443
|
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.initialize(); } catch (MockCreateException e) { assertTrue(serviceFactory.throwExceptionFromCreate == true); assertSame(serviceFactory.createException, e); } catch (UnsatisfiedConditionsException e) { assertTrue(startCondition.satisfied == false); assertTrue(e.getUnsatisfiedConditions().contains(startCondition)); } catch (IllegalServiceStateException e) { assertFalse(serviceFactory.isEnabled()); } assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); if (serviceFactory.restartable) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNotNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.waitingToStop); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else if (!serviceFactory.isEnabled()) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else if (serviceFactory.throwExceptionFromCreate != true && startCondition.satisfied == true) { assertSame(ServiceState.RUNNING, serviceManager.getState()); assertSame(SERVICE, serviceManager.getService()); assertTrue(serviceManager.getStartTime() > now); assertNotNull(serviceMonitor.registered); assertNotNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNotNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertEquals(serviceMonitor.registered.getEventId() + 1, serviceMonitor.starting.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 2, serviceMonitor.running.getEventId()); assertTrue(startCondition.initializeCalled); assertTrue(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNotNull(serviceMonitor.registered); assertNotNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNotNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNotNull(serviceMonitor.stopped); assertNotNull(serviceMonitor.unregistered); assertEquals(serviceMonitor.registered.getEventId() + 1, serviceMonitor.starting.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 2, serviceMonitor.stopping.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 3, serviceMonitor.stopped.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 4, serviceMonitor.unregistered.getEventId()); assertTrue(startCondition.initializeCalled); assertTrue(startCondition.isSatisfiedCalled); assertTrue(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } }
|
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.initialize(); } catch (MockCreateException e) { assertTrue(serviceFactory.throwExceptionFromCreate == true); assertSame(serviceFactory.createException, e); } catch (UnsatisfiedConditionsException e) { assertTrue(!startCondition.satisfied); assertTrue(e.getUnsatisfiedConditions().contains(startCondition)); } catch (IllegalServiceStateException e) { assertFalse(serviceFactory.isEnabled()); } assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); if (serviceFactory.restartable) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNotNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.waitingToStop); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else if (!serviceFactory.isEnabled()) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else if (serviceFactory.throwExceptionFromCreate != true && startCondition.satisfied == true) { assertSame(ServiceState.RUNNING, serviceManager.getState()); assertSame(SERVICE, serviceManager.getService()); assertTrue(serviceManager.getStartTime() > now); assertNotNull(serviceMonitor.registered); assertNotNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNotNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertEquals(serviceMonitor.registered.getEventId() + 1, serviceMonitor.starting.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 2, serviceMonitor.running.getEventId()); assertTrue(startCondition.initializeCalled); assertTrue(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNotNull(serviceMonitor.registered); assertNotNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNotNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNotNull(serviceMonitor.stopped); assertNotNull(serviceMonitor.unregistered); assertEquals(serviceMonitor.registered.getEventId() + 1, serviceMonitor.starting.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 2, serviceMonitor.stopping.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 3, serviceMonitor.stopped.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 4, serviceMonitor.unregistered.getEventId()); assertTrue(startCondition.initializeCalled); assertTrue(startCondition.isSatisfiedCalled); assertTrue(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } }
| 3,239,444
|
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.initialize(); } catch (MockCreateException e) { assertTrue(serviceFactory.throwExceptionFromCreate == true); assertSame(serviceFactory.createException, e); } catch (UnsatisfiedConditionsException e) { assertTrue(startCondition.satisfied == false); assertTrue(e.getUnsatisfiedConditions().contains(startCondition)); } catch (IllegalServiceStateException e) { assertFalse(serviceFactory.isEnabled()); } assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); if (serviceFactory.restartable) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNotNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.waitingToStop); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else if (!serviceFactory.isEnabled()) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else if (serviceFactory.throwExceptionFromCreate != true && startCondition.satisfied == true) { assertSame(ServiceState.RUNNING, serviceManager.getState()); assertSame(SERVICE, serviceManager.getService()); assertTrue(serviceManager.getStartTime() > now); assertNotNull(serviceMonitor.registered); assertNotNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNotNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertEquals(serviceMonitor.registered.getEventId() + 1, serviceMonitor.starting.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 2, serviceMonitor.running.getEventId()); assertTrue(startCondition.initializeCalled); assertTrue(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNotNull(serviceMonitor.registered); assertNotNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNotNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNotNull(serviceMonitor.stopped); assertNotNull(serviceMonitor.unregistered); assertEquals(serviceMonitor.registered.getEventId() + 1, serviceMonitor.starting.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 2, serviceMonitor.stopping.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 3, serviceMonitor.stopped.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 4, serviceMonitor.unregistered.getEventId()); assertTrue(startCondition.initializeCalled); assertTrue(startCondition.isSatisfiedCalled); assertTrue(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } }
|
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.initialize(); } catch (MockCreateException e) { assertTrue(serviceFactory.throwExceptionFromCreate == true); assertSame(serviceFactory.createException, e); } catch (UnsatisfiedConditionsException e) { assertTrue(startCondition.satisfied == false); assertTrue(e.getUnsatisfiedConditions().contains(startCondition)); } catch (IllegalServiceStateException e) { assertFalse(serviceFactory.isEnabled()); } assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); if (serviceFactory.restartable) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNotNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.waitingToStop); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else if (!serviceFactory.isEnabled()) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else if (!serviceFactory.throwExceptionFromCreate && startCondition.satisfied) { assertSame(ServiceState.RUNNING, serviceManager.getState()); assertSame(SERVICE, serviceManager.getService()); assertTrue(serviceManager.getStartTime() > now); assertNotNull(serviceMonitor.registered); assertNotNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNotNull(serviceMonitor.running); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); assertEquals(serviceMonitor.registered.getEventId() + 1, serviceMonitor.starting.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 2, serviceMonitor.running.getEventId()); assertTrue(startCondition.initializeCalled); assertTrue(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNotNull(serviceMonitor.registered); assertNotNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); assertNotNull(serviceMonitor.stopping); assertNull(serviceMonitor.stopError); assertNotNull(serviceMonitor.stopped); assertNotNull(serviceMonitor.unregistered); assertEquals(serviceMonitor.registered.getEventId() + 1, serviceMonitor.starting.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 2, serviceMonitor.stopping.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 3, serviceMonitor.stopped.getEventId()); assertEquals(serviceMonitor.registered.getEventId() + 4, serviceMonitor.unregistered.getEventId()); assertTrue(startCondition.initializeCalled); assertTrue(startCondition.isSatisfiedCalled); assertTrue(startCondition.destroyCalled); assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } }
| 3,239,445
|
private void startFromStopping(StartStrategy startStrategy) throws Exception { start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRONOUS); try { serviceManager.start(false, startStrategy); fail("Should have thrown an IllegalServiceStateException since start on a stopping service is an error"); } catch (IllegalServiceStateException excpected) { // expected } stopCondition.satisfied = true; stop(StopStrategies.ASYNCHRONOUS); }
|
private void startFromStopping(StartStrategy startStrategy) throws Exception { start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRONOUS); try { serviceManager.start(false, startStrategy); fail("Should have thrown an IllegalServiceStateException since start on a stopping service is an error"); } catch (IllegalServiceStateException e) { // expected } stopCondition.satisfied = true; stop(StopStrategies.ASYNCHRONOUS); }
| 3,239,447
|
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/sortabletable.css\" />"); out .println("<script type=\"text/javascript\" src=\"js/popup.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/sortabletable.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/customsorttypes.js\"></script>"); out.println("</head>"); out.println("<body>"); out.print("<h5>Coverage Report - "); out.print(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<p>"); out.println("<table class=\"report\" id=\"packageResults\">"); out.println("<thead>"); out.println("<tr>"); out.println(" <td class=\"heading\">Package</td>"); out.println(" <td class=\"heading\"># Classes</td>"); out.println(generateCommonTableColumns()); out.println("</tr>"); out.println("</thead>"); out.println("<tbody>"); SortedSet packages; if (packageData == null) { // Output a summary line for all packages out.println(generateTableRowForTotal()); // Get packages packages = projectData.getPackages(); } else { // Get subpackages packages = projectData.getSubPackages(packageData.getName()); } // Output a line for each package or subpackage iter = packages.iterator(); while (iter.hasNext()) { PackageData subPackageData = (PackageData)iter.next(); out.println(generateTableRowForPackage(subPackageData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var packageTable = new SortableTable(document.getElementById(\"packageResults\"),"); out .println(" [\"String\", \"Number\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("packageTable.sort(0);"); out.println("</script>"); out.println("</p>"); // Get the list of source files in this package Collection sourceFiles; if (packageData == null) { PackageData defaultPackage = (PackageData)projectData .getChild(""); if (defaultPackage != null) { sourceFiles = defaultPackage.getSourceFiles(); } else { sourceFiles = new TreeSet(); } } else { sourceFiles = packageData.getSourceFiles(); } // Output a line for each class if (sourceFiles.size() > 0) { out.println("<p>"); out.println("<table class=\"report\" id=\"classResults\">"); out.println(generateTableHeaderForClasses()); out.println("<tbody>"); iter = sourceFiles.iterator(); while (iter.hasNext()) { SourceFileData sourceFileData = (SourceFileData)iter .next(); out .println(generateTableRowForSourceFile(sourceFileData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var classTable = new SortableTable(document.getElementById(\"classResults\"),"); out .println(" [\"String\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("classTable.sort(0);"); out.println("</script>"); out.println("</p>"); } out.println("<div class=\"footer\">"); out .println("Report generated by <a href=\"http://cobertura.sourceforge.net/\" target=\"_top\">Cobertura</a>."); out.println("</div>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
|
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/sortabletable.css\" />"); out .println("<script type=\"text/javascript\" src=\"js/popup.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/sortabletable.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/customsorttypes.js\"></script>"); out.println("</head>"); out.println("<body>"); out.print("<h5>Coverage Report - "); out.print(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<p>"); out.println("<table class=\"report\" id=\"packageResults\">"); out.println("<thead>"); out.println("<tr>"); out.println(" <td class=\"heading\">Package</td>"); out.println(" <td class=\"heading\"># Classes</td>"); out.println(generateCommonTableColumns()); out.println("</tr>"); out.println("</thead>"); out.println("<tbody>"); SortedSet packages; if (packageData == null) { // Output a summary line for all packages out.println(generateTableRowForTotal()); // Get packages packages = projectData.getPackages(); } else { // Get subpackages packages = projectData.getSubPackages(packageData.getName()); } // Output a line for each package or subpackage iter = packages.iterator(); while (iter.hasNext()) { PackageData subPackageData = (PackageData)iter.next(); out.println(generateTableRowForPackage(subPackageData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var packageTable = new SortableTable(document.getElementById(\"packageResults\"),"); out .println(" [\"String\", \"Number\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("packageTable.sort(0);"); out.println("</script>"); out.println("</p>"); // Get the list of source files in this package Collection sourceFiles; if (packageData == null) { PackageData defaultPackage = (PackageData)projectData .getChild(""); if (defaultPackage != null) { sourceFiles = defaultPackage.getSourceFiles(); } else { sourceFiles = new TreeSet(); } } else { sourceFiles = packageData.getSourceFiles(); } // Output a line for each class if (sourceFiles.size() > 0) { out.println("<p>"); out.println("<table class=\"report\" id=\"classResults\">"); out.println(generateTableHeaderForClasses()); out.println("<tbody>"); iter = sourceFiles.iterator(); while (iter.hasNext()) { SourceFileData sourceFileData = (SourceFileData)iter .next(); out .println(generateTableRowForSourceFile(sourceFileData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var classTable = new SortableTable(document.getElementById(\"classResults\"),"); out .println(" [\"String\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("classTable.sort(0);"); out.println("</script>"); out.println("</p>"); } out.println("<div class=\"footer\">"); out .println("Report generated by <a href=\"http://cobertura.sourceforge.net/\" target=\"_top\">Cobertura</a>."); out.println("</div>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
| 3,239,454
|
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/sortabletable.css\" />"); out .println("<script type=\"text/javascript\" src=\"js/popup.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/sortabletable.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/customsorttypes.js\"></script>"); out.println("</head>"); out.println("<body>"); out.print("<h5>Coverage Report - "); out.print(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<p>"); out.println("<table class=\"report\" id=\"packageResults\">"); out.println("<thead>"); out.println("<tr>"); out.println(" <td class=\"heading\">Package</td>"); out.println(" <td class=\"heading\"># Classes</td>"); out.println(generateCommonTableColumns()); out.println("</tr>"); out.println("</thead>"); out.println("<tbody>"); SortedSet packages; if (packageData == null) { // Output a summary line for all packages out.println(generateTableRowForTotal()); // Get packages packages = projectData.getPackages(); } else { // Get subpackages packages = projectData.getSubPackages(packageData.getName()); } // Output a line for each package or subpackage iter = packages.iterator(); while (iter.hasNext()) { PackageData subPackageData = (PackageData)iter.next(); out.println(generateTableRowForPackage(subPackageData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var packageTable = new SortableTable(document.getElementById(\"packageResults\"),"); out .println(" [\"String\", \"Number\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("packageTable.sort(0);"); out.println("</script>"); out.println("</p>"); // Get the list of source files in this package Collection sourceFiles; if (packageData == null) { PackageData defaultPackage = (PackageData)projectData .getChild(""); if (defaultPackage != null) { sourceFiles = defaultPackage.getSourceFiles(); } else { sourceFiles = new TreeSet(); } } else { sourceFiles = packageData.getSourceFiles(); } // Output a line for each class if (sourceFiles.size() > 0) { out.println("<p>"); out.println("<table class=\"report\" id=\"classResults\">"); out.println(generateTableHeaderForClasses()); out.println("<tbody>"); iter = sourceFiles.iterator(); while (iter.hasNext()) { SourceFileData sourceFileData = (SourceFileData)iter .next(); out .println(generateTableRowForSourceFile(sourceFileData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var classTable = new SortableTable(document.getElementById(\"classResults\"),"); out .println(" [\"String\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("classTable.sort(0);"); out.println("</script>"); out.println("</p>"); } out.println("<div class=\"footer\">"); out .println("Report generated by <a href=\"http://cobertura.sourceforge.net/\" target=\"_top\">Cobertura</a>."); out.println("</div>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
|
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/sortabletable.css\" />"); out .println("<script type=\"text/javascript\" src=\"js/popup.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/sortabletable.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/customsorttypes.js\"></script>"); out.println("</head>"); out.println("<body>"); out.print("<h5>Coverage Report - "); out.print(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<p>"); out.println("<table class=\"report\" id=\"packageResults\">"); out.println("<thead>"); out.println("<tr>"); out.println(" <td class=\"heading\">Package</td>"); out.println(" <td class=\"heading\"># Classes</td>"); out.println(generateCommonTableColumns()); out.println("</tr>"); out.println("</thead>"); out.println("<tbody>"); SortedSet packages; if (packageData == null) { // Output a summary line for all packages out.println(generateTableRowForTotal()); // Get packages packages = projectData.getPackages(); } else { // Get subpackages packages = projectData.getSubPackages(packageData.getName()); } // Output a line for each package or subpackage iter = packages.iterator(); while (iter.hasNext()) { PackageData subPackageData = (PackageData)iter.next(); out.println(generateTableRowForPackage(subPackageData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var packageTable = new SortableTable(document.getElementById(\"packageResults\"),"); out .println(" [\"String\", \"Number\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("packageTable.sort(0);"); out.println("</script>"); out.println("</p>"); // Get the list of source files in this package Collection sourceFiles; if (packageData == null) { PackageData defaultPackage = (PackageData)projectData .getChild(""); if (defaultPackage != null) { sourceFiles = defaultPackage.getSourceFiles(); } else { sourceFiles = new TreeSet(); } } else { sourceFiles = packageData.getSourceFiles(); } // Output a line for each class if (sourceFiles.size() > 0) { out.println("<p>"); out.println("<table class=\"report\" id=\"classResults\">"); out.println(generateTableHeaderForClasses()); out.println("<tbody>"); iter = sourceFiles.iterator(); while (iter.hasNext()) { SourceFileData sourceFileData = (SourceFileData)iter .next(); out .println(generateTableRowForSourceFile(sourceFileData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var classTable = new SortableTable(document.getElementById(\"classResults\"),"); out .println(" [\"String\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("classTable.sort(0);"); out.println("</script>"); out.println("</p>"); } out.println("<div class=\"footer\">"); out .println("Report generated by <a href=\"http://cobertura.sourceforge.net/\" target=\"_top\">Cobertura</a>."); out.println("</div>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
| 3,239,455
|
private static String generateTableColumnsFromData(double lineCoverage, double branchCoverage, double ccn) { String lineCoverageCell = (lineCoverage == -1) ? generateNAPercent() : generatePercentResult(lineCoverage); String branchCoverageCell = (branchCoverage == -1) ? generateNAPercent() : generatePercentResult(branchCoverage); return "<td class=\"value\">" + lineCoverageCell + "</td>" + "<td class=\"value\">" + branchCoverageCell + "</td>" + "<td class=\"value\">" + getDoubleValue(ccn) + "</td>"; }
|
private static String generateTableColumnsFromData(double lineCoverage, double branchCoverage, double ccn) { String lineCoverageCell = (lineCoverage == -1) ? generateNAPercent() : generatePercentResult(lineCoverage); String branchCoverageCell = (branchCoverage == -1) ? generateNAPercent() : generatePercentResult(branchCoverage); return "<td class=\"value\">" + lineCoverageCell + "</td>" + "<td class=\"value\">" + branchCoverageCell + "</td>" + "<td class=\"value\">" + getDoubleValue(ccn) + "</td>"; }
| 3,239,456
|
public static RubyModule createKernelModule(IRuby runtime) { RubyModule module = runtime.defineModule("Kernel"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyKernel.class); CallbackFactory objectCallbackFactory = runtime.callbackFactory(RubyObject.class); module.defineModuleFunction("Array", callbackFactory.getSingletonMethod("new_array", IRubyObject.class)); module.defineModuleFunction("Float", callbackFactory.getSingletonMethod("new_float", IRubyObject.class)); module.defineModuleFunction("Integer", callbackFactory.getSingletonMethod("new_integer", IRubyObject.class)); module.defineModuleFunction("String", callbackFactory.getSingletonMethod("new_string", IRubyObject.class)); module.defineModuleFunction("`", callbackFactory.getSingletonMethod("backquote", IRubyObject.class)); // TODO: Implement Kernel#abort module.defineModuleFunction("at_exit", callbackFactory.getSingletonMethod("at_exit")); module.defineModuleFunction("autoload", callbackFactory.getSingletonMethod("autoload", IRubyObject.class, IRubyObject.class)); // TODO: Implement Kernel#autoload? module.defineModuleFunction("binding", callbackFactory.getSingletonMethod("binding")); module.defineModuleFunction("block_given?", callbackFactory.getSingletonMethod("block_given")); // TODO: Implement Kernel#callcc module.defineModuleFunction("caller", callbackFactory.getOptSingletonMethod("caller")); module.defineModuleFunction("catch", callbackFactory.getSingletonMethod("rbCatch", IRubyObject.class)); module.defineModuleFunction("chomp", callbackFactory.getOptSingletonMethod("chomp")); module.defineModuleFunction("chomp!", callbackFactory.getOptSingletonMethod("chomp_bang")); module.defineModuleFunction("chop", callbackFactory.getSingletonMethod("chop")); module.defineModuleFunction("chop!", callbackFactory.getSingletonMethod("chop_bang")); module.defineModuleFunction("eval", callbackFactory.getOptSingletonMethod("eval")); // TODO: Implement Kernel#exec module.defineModuleFunction("exit", callbackFactory.getOptSingletonMethod("exit")); module.defineModuleFunction("exit!", callbackFactory.getOptSingletonMethod("exit_bang")); module.defineModuleFunction("fail", callbackFactory.getOptSingletonMethod("raise")); // TODO: Implement Kernel#fork module.defineModuleFunction("format", callbackFactory.getOptSingletonMethod("sprintf")); module.defineModuleFunction("gets", callbackFactory.getOptSingletonMethod("gets")); module.defineModuleFunction("global_variables", callbackFactory.getSingletonMethod("global_variables")); module.defineModuleFunction("gsub", callbackFactory.getOptSingletonMethod("gsub")); module.defineModuleFunction("gsub!", callbackFactory.getOptSingletonMethod("gsub_bang")); // TODO: Add deprecation to Kernel#iterator? (maybe formal deprecation mech.) module.defineAlias("iterator?", "block_given?"); module.defineModuleFunction("lambda", callbackFactory.getSingletonMethod("proc")); module.defineModuleFunction("load", callbackFactory.getOptSingletonMethod("load")); module.defineModuleFunction("local_variables", callbackFactory.getSingletonMethod("local_variables")); module.defineModuleFunction("loop", callbackFactory.getSingletonMethod("loop")); // Note: method_missing is documented as being in Object, but ruby appears to stick it in Kernel. module.defineModuleFunction("method_missing", callbackFactory.getOptSingletonMethod("method_missing")); module.defineModuleFunction("open", callbackFactory.getOptSingletonMethod("open")); module.defineModuleFunction("p", callbackFactory.getOptSingletonMethod("p")); module.defineModuleFunction("print", callbackFactory.getOptSingletonMethod("print")); module.defineModuleFunction("printf", callbackFactory.getOptSingletonMethod("printf")); module.defineModuleFunction("proc", callbackFactory.getSingletonMethod("proc")); // TODO: implement Kernel#putc module.defineModuleFunction("puts", callbackFactory.getOptSingletonMethod("puts")); module.defineAlias("raise", "fail"); module.defineModuleFunction("rand", callbackFactory.getOptSingletonMethod("rand")); module.defineModuleFunction("readline", callbackFactory.getOptSingletonMethod("readline")); module.defineModuleFunction("readlines", callbackFactory.getOptSingletonMethod("readlines")); module.defineModuleFunction("require", callbackFactory.getSingletonMethod("require", IRubyObject.class)); module.defineModuleFunction("scan", callbackFactory.getSingletonMethod("scan", IRubyObject.class)); // TODO: Implement Kernel#select module.defineModuleFunction("set_trace_func", callbackFactory.getSingletonMethod("set_trace_func", IRubyObject.class)); module.defineModuleFunction("sleep", callbackFactory.getSingletonMethod("sleep", IRubyObject.class)); module.defineModuleFunction("split", callbackFactory.getOptSingletonMethod("split")); module.defineAlias("sprintf", "format"); module.defineModuleFunction("srand", callbackFactory.getOptSingletonMethod("srand")); module.defineModuleFunction("sub", callbackFactory.getOptSingletonMethod("sub")); module.defineModuleFunction("sub!", callbackFactory.getOptSingletonMethod("sub_bang")); // Skipping: Kernel#syscall (too system dependent) module.defineModuleFunction("system", callbackFactory.getOptSingletonMethod("system")); // TODO: Implement Kernel#test (partial impl) module.defineModuleFunction("throw", callbackFactory.getOptSingletonMethod("rbThrow")); // TODO: Implement Kernel#trace_var module.defineModuleFunction("trap", callbackFactory.getOptSingletonMethod("trap")); // TODO: Implement Kernel#untrace_var // TODO: Implement Kernel#warn // Defined p411 Pickaxe 2nd ed. module.defineModuleFunction("singleton_method_added", callbackFactory.getSingletonMethod("singleton_method_added", IRubyObject.class)); // Object methods module.definePublicModuleFunction("==", objectCallbackFactory.getMethod("equal", IRubyObject.class)); module.defineAlias("===", "=="); module.defineAlias("eql?", "=="); module.definePublicModuleFunction("to_s", objectCallbackFactory.getMethod("to_s")); module.definePublicModuleFunction("nil?", objectCallbackFactory.getMethod("nil_p")); module.definePublicModuleFunction("to_a", objectCallbackFactory.getMethod("to_a")); module.definePublicModuleFunction("hash", objectCallbackFactory.getMethod("hash")); module.definePublicModuleFunction("id", objectCallbackFactory.getMethod("id")); module.defineAlias("__id__", "id"); module.defineAlias("object_id", "id"); module.definePublicModuleFunction("is_a?", objectCallbackFactory.getMethod("kind_of", IRubyObject.class)); module.defineAlias("kind_of?", "is_a?"); module.definePublicModuleFunction("dup", objectCallbackFactory.getMethod("dup")); module.definePublicModuleFunction("equal?", objectCallbackFactory.getMethod("same", IRubyObject.class)); module.definePublicModuleFunction("type", objectCallbackFactory.getMethod("type_deprecated")); module.definePublicModuleFunction("class", objectCallbackFactory.getMethod("type")); module.definePublicModuleFunction("inspect", objectCallbackFactory.getMethod("inspect")); module.definePublicModuleFunction("=~", objectCallbackFactory.getMethod("match", IRubyObject.class)); module.definePublicModuleFunction("clone", objectCallbackFactory.getMethod("rbClone")); module.definePublicModuleFunction("display", objectCallbackFactory.getOptMethod("display")); module.definePublicModuleFunction("extend", objectCallbackFactory.getOptMethod("extend")); module.definePublicModuleFunction("freeze", objectCallbackFactory.getMethod("freeze")); module.definePublicModuleFunction("frozen?", objectCallbackFactory.getMethod("frozen")); module.defineModuleFunction("initialize_copy", objectCallbackFactory.getMethod("initialize_copy", IRubyObject.class)); module.definePublicModuleFunction("instance_eval", objectCallbackFactory.getOptMethod("instance_eval")); module.definePublicModuleFunction("instance_of?", objectCallbackFactory.getMethod("instance_of", IRubyObject.class)); module.definePublicModuleFunction("instance_variables", objectCallbackFactory.getMethod("instance_variables")); module.definePublicModuleFunction("instance_variable_get", objectCallbackFactory.getMethod("instance_variable_get", IRubyObject.class)); module.definePublicModuleFunction("instance_variable_set", objectCallbackFactory.getMethod("instance_variable_set", IRubyObject.class, IRubyObject.class)); module.definePublicModuleFunction("method", objectCallbackFactory.getMethod("method", IRubyObject.class)); module.definePublicModuleFunction("methods", objectCallbackFactory.getOptMethod("methods")); module.definePublicModuleFunction("private_methods", objectCallbackFactory.getMethod("private_methods")); module.definePublicModuleFunction("protected_methods", objectCallbackFactory.getMethod("protected_methods")); module.definePublicModuleFunction("public_methods", objectCallbackFactory.getOptMethod("public_methods")); module.definePublicModuleFunction("remove_instance_variable", objectCallbackFactory.getMethod("remove_instance_variable", IRubyObject.class)); module.definePublicModuleFunction("respond_to?", objectCallbackFactory.getOptMethod("respond_to")); module.definePublicModuleFunction("send", objectCallbackFactory.getOptMethod("send")); module.defineAlias("__send__", "send"); module.definePublicModuleFunction("singleton_methods", objectCallbackFactory.getMethod("singleton_methods")); module.definePublicModuleFunction("taint", objectCallbackFactory.getMethod("taint")); module.definePublicModuleFunction("tainted?", objectCallbackFactory.getMethod("tainted")); module.definePublicModuleFunction("untaint", objectCallbackFactory.getMethod("untaint")); return module; }
|
module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); publicmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); staticmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); RubyModulemodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); createKernelModule(IRubymodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); runtime)module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); {module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); RubyModulemodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); modulemodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); =module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); runtime.defineModule("Kernel");module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); CallbackFactorymodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactorymodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); =module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); runtime.callbackFactory(RubyKernel.class);module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); CallbackFactorymodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactorymodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); =module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); runtime.callbackFactory(RubyObject.class);module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("Array",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("new_array",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("Float",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("new_float",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("Integer",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("new_integer",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("String",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("new_string",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("`",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("backquote",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); //module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); TODO:module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Implementmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Kernel#abortmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("at_exit",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("at_exit"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("autoload",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("autoload",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class,module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); //module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); TODO:module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Implementmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Kernel#autoload?module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("binding",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("binding"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("block_given?",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("block_given"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); //module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); TODO:module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Implementmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Kernel#callccmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("caller",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("caller"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("catch",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("rbCatch",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("chomp",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("chomp"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("chomp!",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("chomp_bang"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("chop",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("chop"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("chop!",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("chop_bang"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("eval",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("eval"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); //module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); TODO:module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Implementmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Kernel#execmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("exit",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("exit"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("exit!",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("exit_bang"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("fail",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("raise"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); //module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); TODO:module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Implementmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Kernel#forkmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("format",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("sprintf"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("gets",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("gets"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("global_variables",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("global_variables"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("gsub",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("gsub"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("gsub!",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("gsub_bang"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); //module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); TODO:module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Addmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); deprecationmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); tomodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Kernel#iterator?module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); (maybemodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); formalmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); deprecationmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); mech.)module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineAlias("iterator?",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); "block_given?");module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("lambda",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("proc"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("load",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("load"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("local_variables",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("local_variables"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("loop",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("loop"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); //module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Note:module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); method_missingmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); ismodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); documentedmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); asmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); beingmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); inmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Object,module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); butmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); rubymodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); appearsmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); tomodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); stickmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); itmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); inmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Kernel.module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("method_missing",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("method_missing"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("open",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("open"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("p",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("p"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("print",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("print"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("printf",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("printf"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("proc",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("proc"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); //module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); TODO:module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); implementmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Kernel#putcmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("puts",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("puts"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineAlias("raise",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); "fail");module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("rand",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("rand"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("readline",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("readline"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("readlines",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("readlines"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("require",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("require",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("scan",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("scan",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); //module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); TODO:module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Implementmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Kernel#selectmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("set_trace_func",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("set_trace_func",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("sleep",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("sleep",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("split",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("split"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineAlias("sprintf",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); "format");module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("srand",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("srand"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("sub",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("sub"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("sub!",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("sub_bang"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); //module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Skipping:module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Kernel#syscallmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); (toomodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); systemmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); dependent)module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("system",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("system"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); //module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); TODO:module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Implementmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Kernel#testmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); (partialmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); impl)module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("throw",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("rbThrow"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); //module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); TODO:module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Implementmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Kernel#trace_varmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("trap",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getOptSingletonMethod("trap"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); //module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); TODO:module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Implementmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Kernel#untrace_varmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); //module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); TODO:module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Implementmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Kernel#warnmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); //module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Definedmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); p411module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Pickaxemodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); 2ndmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); ed.module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("singleton_method_added",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); callbackFactory.getSingletonMethod("singleton_method_added",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); //module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); Objectmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); methodsmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("==",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("equal",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineAlias("===",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); "==");module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineAlias("eql?",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); "==");module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("to_s",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("to_s"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("nil?",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("nil_p"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("to_a",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("to_a"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("hash",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("hash"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("id",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("id"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineAlias("__id__",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); "id");module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineAlias("object_id",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); "id");module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("is_a?",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("kind_of",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineAlias("kind_of?",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); "is_a?");module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("dup",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("dup"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("equal?",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("same",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("type",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("type_deprecated"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("class",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("type"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("inspect",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("inspect"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("=~",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("match",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("clone",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("rbClone"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("display",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getOptMethod("display"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("extend",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getOptMethod("extend"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("freeze",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("freeze"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("frozen?",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("frozen"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("initialize_copy",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("initialize_copy",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("instance_eval",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getOptMethod("instance_eval"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("instance_of?",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("instance_of",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("instance_variables",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("instance_variables"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("instance_variable_get",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("instance_variable_get",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("instance_variable_set",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("instance_variable_set",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class,module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("method",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("method",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("methods",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getOptMethod("methods"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("private_methods",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("private_methods"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("protected_methods",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("protected_methods"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("public_methods",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getOptMethod("public_methods"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("remove_instance_variable",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("remove_instance_variable",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); IRubyObject.class));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("respond_to?",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getOptMethod("respond_to"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("send",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getOptMethod("send"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineAlias("__send__",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); "send");module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("singleton_methods",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("singleton_methods"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("taint",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("taint"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("tainted?",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("tainted"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.definePublicModuleFunction("untaint",module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); objectCallbackFactory.getMethod("untaint"));module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); returnmodule.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module;module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); }
| 3,239,457
|
public void paint(Graphics g, JComponent c) { Graphics2D g2d = (Graphics2D)g; g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); Insets vInsets = c.getInsets(); int w = c.getWidth() - (vInsets.left + vInsets.right); int h = c.getHeight() - (vInsets.top + vInsets.bottom); int x = vInsets.left; int y = vInsets.top; int arc = 8; Shape vButtonShape = new RoundRectangle2D.Double((double)x, (double)y, (double)w, (double)h, (double)arc, (double)arc); Shape vOldClip = g.getClip(); g2d.setClip(vButtonShape); g2d.setColor(backgroundColor2); g2d.fillRect(x, y, w, h); g2d.setClip(vOldClip); GradientPaint vPaint = new GradientPaint(x, y, borderColor, x, y + h, borderHighlight); g2d.setPaint(vPaint); // Handle custom actions. if (placement == JTabbedPane.TOP) { if (selected) { g2d.setColor(Color.lightGray); g2d.drawRoundRect(x, y, w, h, arc, arc); } g2d.clipRect(x, y, w + 1, h - arc / 4); g2d.setColor(borderColorAlpha1); g2d.setClip(vOldClip); g2d.setColor(borderColorAlpha2); g2d.setColor(backgroundColor2); g2d.fillRect(x, h - 5, w, h); } else { // Make straight line. g2d.setColor(backgroundColor2); g2d.fillRect(x, y, w, 4); } if (selected) { } else if (!hideBorder) { // Draw border on right side. g2d.setColor(Color.lightGray); g2d.drawLine(w - 1, 4, w - 1, h - 4); } }
|
public void paint(Graphics g, JComponent c) { Graphics2D g2d = (Graphics2D)g; g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); Insets vInsets = c.getInsets(); int w = c.getWidth() - (vInsets.left + vInsets.right); int h = c.getHeight() - (vInsets.top + vInsets.bottom); int x = vInsets.left; int y = vInsets.top; int arc = 8; Shape vButtonShape = new RoundRectangle2D.Double((double)x, (double)y, (double)w, (double)h, (double)arc, (double)arc); Shape vOldClip = g.getClip(); if(!Spark.isMac()){ g2d.setClip(vButtonShape); } g2d.setColor(backgroundColor2); g2d.fillRect(x, y, w, h); g2d.setClip(vOldClip); GradientPaint vPaint = new GradientPaint(x, y, borderColor, x, y + h, borderHighlight); g2d.setPaint(vPaint); // Handle custom actions. if (placement == JTabbedPane.TOP) { if (selected) { g2d.setColor(Color.lightGray); g2d.drawRoundRect(x, y, w, h, arc, arc); } g2d.clipRect(x, y, w + 1, h - arc / 4); g2d.setColor(borderColorAlpha1); g2d.setClip(vOldClip); g2d.setColor(borderColorAlpha2); g2d.setColor(backgroundColor2); g2d.fillRect(x, h - 5, w, h); } else { // Make straight line. g2d.setColor(backgroundColor2); g2d.fillRect(x, y, w, 4); } if (selected) { } else if (!hideBorder) { // Draw border on right side. g2d.setColor(Color.lightGray); g2d.drawLine(w - 1, 4, w - 1, h - 4); } }
| 3,239,458
|
private JPanel buildButtonPanel() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(viewButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(saveButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(addButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.setOpaque(false); //make panel transparent return p; }
|
private JPanel buildButtonPanel() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(viewButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(saveButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(addButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.setOpaque(false); //make panel transparent return p; }
| 3,239,459
|
private void initButtons() { saveButton = new JButton("Save"); saveButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save data in the DB.")); saveButton.setEnabled(false); addButton = new JButton("Add datasets"); addButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); addButton.setToolTipText( UIUtilities.formatToolTipText("Add datasets to the project.")); viewButton = new JButton("Browse"); viewButton.setToolTipText(UIUtilities.formatToolTipText("Browse" + " the project.")); }
|
private void initButtons() { saveButton = new JButton("Save"); saveButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save data in the DB.")); saveButton.setEnabled(false); addButton = new JButton("Add datasets"); addButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); addButton.setToolTipText( UIUtilities.formatToolTipText("Add datasets to the project.")); viewButton = new JButton("Browse"); viewButton.setToolTipText(UIUtilities.formatToolTipText("Browse" + " the project.")); }
| 3,239,461
|
private SparkTransferManager() { boolean enabled = Enterprise.containsFeature(Enterprise.FILE_TRANSFER_FEATURE); if (!enabled) { return; } // Register Preferences PreferenceManager prefManager = SparkManager.getPreferenceManager(); prefManager.addPreference(new FileTransferPreference()); final JMenu actionsMenu = SparkManager.getMainWindow().getMenuByName("Actions"); JMenuItem downloadsMenu = new JMenuItem("", SparkRes.getImageIcon(SparkRes.DOWNLOAD_16x16)); ResourceUtils.resButton(downloadsMenu, "&View Downloads"); actionsMenu.add(downloadsMenu); downloadsMenu.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Downloads downloads = Downloads.getInstance(); downloads.showDownloadsDirectory(); } }); // Create the file transfer manager transferManager = new FileTransferManager(SparkManager.getConnection()); final ContactList contactList = SparkManager.getWorkspace().getContactList(); // Create the listener transferManager.addFileTransferListener(new org.jivesoftware.smackx.filetransfer.FileTransferListener() { public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactItem contactItem = contactList.getContactItemByJID(bareJID); ChatRoom chatRoom; if (contactItem != null) { chatRoom = SparkManager.getChatManager().createChatRoom(bareJID, contactItem.getNickname(), contactItem.getNickname()); } else { chatRoom = SparkManager.getChatManager().createChatRoom(bareJID, bareJID, bareJID); } TranscriptWindow transcriptWindow = chatRoom.getTranscriptWindow(); StyledDocument doc = (StyledDocument)transcriptWindow.getDocument(); // The image must first be wrapped in a style Style style = doc.addStyle("StyleName", null); final ReceiveMessage receivingMessageUI = new ReceiveMessage(); receivingMessageUI.acceptFileTransfer(request); chatRoom.addClosingListener(new ChatRoomClosingListener() { public void closing() { receivingMessageUI.cancelTransfer(); } }); StyleConstants.setComponent(style, receivingMessageUI); // Insert the image at the end of the text try { doc.insertString(doc.getLength(), "ignored text", style); doc.insertString(doc.getLength(), "\n", null); } catch (BadLocationException e) { Log.error(e); } chatRoom.scrollToBottom(); SparkManager.getChatManager().getChatContainer().fireNotifyOnMessage(chatRoom); } }); // Add Send File to Chat Room addSendFileButton(); contactList.addFileDropListener(new FileDropListener() { public void filesDropped(Collection files, Component component) { if (component instanceof ContactItem) { ContactItem item = (ContactItem)component; ChatRoom chatRoom = null; Iterator iter = files.iterator(); while (iter.hasNext()) { chatRoom = sendFile((File)iter.next(), item.getFullJID()); } if (chatRoom != null) { SparkManager.getChatManager().getChatContainer().activateChatRoom(chatRoom); } } } }); if (defaultDirectory == null) { defaultDirectory = new File(System.getProperty("user.home")); } addPresenceListener(); // Add View Downloads to Command Panel StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); JPanel commandPanel = statusBar.getCommandPanel(); RolloverButton viewDownloads = new RolloverButton(SparkRes.getImageIcon(SparkRes.DOWNLOAD_16x16)); viewDownloads.setToolTipText("View Downloads"); commandPanel.add(viewDownloads); viewDownloads.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Downloads downloads = Downloads.getInstance(); downloads.showDownloadsDirectory(); } }); }
|
private SparkTransferManager() { boolean enabled = Enterprise.containsFeature(Enterprise.FILE_TRANSFER_FEATURE); if (!enabled) { return; } // Register Preferences PreferenceManager prefManager = SparkManager.getPreferenceManager(); prefManager.addPreference(new FileTransferPreference()); final JMenu actionsMenu = SparkManager.getMainWindow().getMenuByName("Actions"); JMenuItem downloadsMenu = new JMenuItem("", SparkRes.getImageIcon(SparkRes.DOWNLOAD_16x16)); ResourceUtils.resButton(downloadsMenu, "&View Downloads"); actionsMenu.add(downloadsMenu); downloadsMenu.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Downloads downloads = Downloads.getInstance(); downloads.showDownloadsDirectory(); } }); // Create the file transfer manager transferManager = new FileTransferManager(SparkManager.getConnection()); final ContactList contactList = SparkManager.getWorkspace().getContactList(); // Create the listener transferManager.addFileTransferListener(new org.jivesoftware.smackx.filetransfer.FileTransferListener() { public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactItem contactItem = contactList.getContactItemByJID(bareJID); ChatRoom chatRoom; if (contactItem != null) { chatRoom = SparkManager.getChatManager().createChatRoom(bareJID, contactItem.getNickname(), contactItem.getNickname()); } else { chatRoom = SparkManager.getChatManager().createChatRoom(bareJID, bareJID, bareJID); } TranscriptWindow transcriptWindow = chatRoom.getTranscriptWindow(); StyledDocument doc = (StyledDocument)transcriptWindow.getDocument(); // The image must first be wrapped in a style Style style = doc.addStyle("StyleName", null); final ReceiveMessage receivingMessageUI = new ReceiveMessage(); receivingMessageUI.acceptFileTransfer(request); chatRoom.addClosingListener(new ChatRoomClosingListener() { public void closing() { receivingMessageUI.cancelTransfer(); } }); StyleConstants.setComponent(style, receivingMessageUI); // Insert the image at the end of the text try { doc.insertString(doc.getLength(), "ignored text", style); doc.insertString(doc.getLength(), "\n", null); } catch (BadLocationException e) { Log.error(e); } chatRoom.scrollToBottom(); SparkManager.getChatManager().getChatContainer().fireNotifyOnMessage(chatRoom); } }); // Add Send File to Chat Room addSendFileButton(); contactList.addFileDropListener(new FileDropListener() { public void filesDropped(Collection files, Component component) { if (component instanceof ContactItem) { ContactItem item = (ContactItem)component; ChatRoom chatRoom = null; Iterator iter = files.iterator(); while (iter.hasNext()) { chatRoom = sendFile((File)iter.next(), item.getFullJID()); } if (chatRoom != null) { SparkManager.getChatManager().getChatContainer().activateChatRoom(chatRoom); } } } }); if (defaultDirectory == null) { defaultDirectory = new File(System.getProperty("user.home")); } addPresenceListener(); // Add View Downloads to Command Panel StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); JPanel commandPanel = statusBar.getCommandPanel(); RolloverButton viewDownloads = new RolloverButton(SparkRes.getImageIcon(SparkRes.DOWNLOAD_16x16)); viewDownloads.setToolTipText("View Downloads"); commandPanel.add(viewDownloads); viewDownloads.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Downloads downloads = Downloads.getInstance(); downloads.showDownloadsDirectory(); } }); }
| 3,239,462
|
private SparkTransferManager() { boolean enabled = Enterprise.containsFeature(Enterprise.FILE_TRANSFER_FEATURE); if (!enabled) { return; } // Register Preferences PreferenceManager prefManager = SparkManager.getPreferenceManager(); prefManager.addPreference(new FileTransferPreference()); final JMenu actionsMenu = SparkManager.getMainWindow().getMenuByName("Actions"); JMenuItem downloadsMenu = new JMenuItem("", SparkRes.getImageIcon(SparkRes.DOWNLOAD_16x16)); ResourceUtils.resButton(downloadsMenu, "&View Downloads"); actionsMenu.add(downloadsMenu); downloadsMenu.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Downloads downloads = Downloads.getInstance(); downloads.showDownloadsDirectory(); } }); // Create the file transfer manager transferManager = new FileTransferManager(SparkManager.getConnection()); final ContactList contactList = SparkManager.getWorkspace().getContactList(); // Create the listener transferManager.addFileTransferListener(new org.jivesoftware.smackx.filetransfer.FileTransferListener() { public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactItem contactItem = contactList.getContactItemByJID(bareJID); ChatRoom chatRoom; if (contactItem != null) { chatRoom = SparkManager.getChatManager().createChatRoom(bareJID, contactItem.getNickname(), contactItem.getNickname()); } else { chatRoom = SparkManager.getChatManager().createChatRoom(bareJID, bareJID, bareJID); } TranscriptWindow transcriptWindow = chatRoom.getTranscriptWindow(); StyledDocument doc = (StyledDocument)transcriptWindow.getDocument(); // The image must first be wrapped in a style Style style = doc.addStyle("StyleName", null); final ReceiveMessage receivingMessageUI = new ReceiveMessage(); receivingMessageUI.acceptFileTransfer(request); chatRoom.addClosingListener(new ChatRoomClosingListener() { public void closing() { receivingMessageUI.cancelTransfer(); } }); StyleConstants.setComponent(style, receivingMessageUI); // Insert the image at the end of the text try { doc.insertString(doc.getLength(), "ignored text", style); doc.insertString(doc.getLength(), "\n", null); } catch (BadLocationException e) { Log.error(e); } chatRoom.scrollToBottom(); SparkManager.getChatManager().getChatContainer().fireNotifyOnMessage(chatRoom); } }); // Add Send File to Chat Room addSendFileButton(); contactList.addFileDropListener(new FileDropListener() { public void filesDropped(Collection files, Component component) { if (component instanceof ContactItem) { ContactItem item = (ContactItem)component; ChatRoom chatRoom = null; Iterator iter = files.iterator(); while (iter.hasNext()) { chatRoom = sendFile((File)iter.next(), item.getFullJID()); } if (chatRoom != null) { SparkManager.getChatManager().getChatContainer().activateChatRoom(chatRoom); } } } }); if (defaultDirectory == null) { defaultDirectory = new File(System.getProperty("user.home")); } addPresenceListener(); // Add View Downloads to Command Panel StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); JPanel commandPanel = statusBar.getCommandPanel(); RolloverButton viewDownloads = new RolloverButton(SparkRes.getImageIcon(SparkRes.DOWNLOAD_16x16)); viewDownloads.setToolTipText("View Downloads"); commandPanel.add(viewDownloads); viewDownloads.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Downloads downloads = Downloads.getInstance(); downloads.showDownloadsDirectory(); } }); }
|
private SparkTransferManager() { boolean enabled = Enterprise.containsFeature(Enterprise.FILE_TRANSFER_FEATURE); if (!enabled) { return; } // Register Preferences PreferenceManager prefManager = SparkManager.getPreferenceManager(); prefManager.addPreference(new FileTransferPreference()); final JMenu actionsMenu = SparkManager.getMainWindow().getMenuByName("Actions"); JMenuItem downloadsMenu = new JMenuItem("", SparkRes.getImageIcon(SparkRes.DOWNLOAD_16x16)); ResourceUtils.resButton(downloadsMenu, "&View Downloads"); actionsMenu.add(downloadsMenu); downloadsMenu.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Downloads downloads = Downloads.getInstance(); downloads.showDownloadsDirectory(); } }); // Create the file transfer manager transferManager = new FileTransferManager(SparkManager.getConnection()); final ContactList contactList = SparkManager.getWorkspace().getContactList(); // Create the listener transferManager.addFileTransferListener(new org.jivesoftware.smackx.filetransfer.FileTransferListener() { public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactItem contactItem = contactList.getContactItemByJID(bareJID); ChatRoom chatRoom; if (contactItem != null) { chatRoom = SparkManager.getChatManager().createChatRoom(bareJID, contactItem.getNickname(), contactItem.getNickname()); } else { chatRoom = SparkManager.getChatManager().createChatRoom(bareJID, bareJID, bareJID); } TranscriptWindow transcriptWindow = chatRoom.getTranscriptWindow(); StyledDocument doc = (StyledDocument)transcriptWindow.getDocument(); // The image must first be wrapped in a style Style style = doc.addStyle("StyleName", null); final ReceiveMessage receivingMessageUI = new ReceiveMessage(); receivingMessageUI.acceptFileTransfer(request); chatRoom.addClosingListener(new ChatRoomClosingListener() { public void closing() { receivingMessageUI.cancelTransfer(); } }); StyleConstants.setComponent(style, receivingMessageUI); // Insert the image at the end of the text try { doc.insertString(doc.getLength(), "ignored text", style); doc.insertString(doc.getLength(), "\n", null); } catch (BadLocationException e) { Log.error(e); } chatRoom.scrollToBottom(); SparkManager.getChatManager().getChatContainer().fireNotifyOnMessage(chatRoom); } }); // Add Send File to Chat Room addSendFileButton(); contactList.addFileDropListener(new FileDropListener() { public void filesDropped(Collection files, Component component) { if (component instanceof ContactItem) { ContactItem item = (ContactItem)component; ChatRoom chatRoom = null; Iterator iter = files.iterator(); while (iter.hasNext()) { chatRoom = sendFile((File)iter.next(), item.getFullJID()); } if (chatRoom != null) { SparkManager.getChatManager().getChatContainer().activateChatRoom(chatRoom); } } } }); if (defaultDirectory == null) { defaultDirectory = new File(System.getProperty("user.home")); } addPresenceListener(); // Add View Downloads to Command Panel StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); JPanel commandPanel = statusBar.getCommandPanel(); RolloverButton viewDownloads = new RolloverButton(SparkRes.getImageIcon(SparkRes.DOWNLOAD_16x16)); viewDownloads.setToolTipText("View Downloads"); commandPanel.add(viewDownloads); viewDownloads.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Downloads downloads = Downloads.getInstance(); downloads.showDownloadsDirectory(); } }); }
| 3,239,463
|
public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactItem contactItem = contactList.getContactItemByJID(bareJID); ChatRoom chatRoom; if (contactItem != null) { chatRoom = SparkManager.getChatManager().createChatRoom(bareJID, contactItem.getNickname(), contactItem.getNickname()); } else { chatRoom = SparkManager.getChatManager().createChatRoom(bareJID, bareJID, bareJID); } TranscriptWindow transcriptWindow = chatRoom.getTranscriptWindow(); StyledDocument doc = (StyledDocument)transcriptWindow.getDocument(); // The image must first be wrapped in a style Style style = doc.addStyle("StyleName", null); final ReceiveMessage receivingMessageUI = new ReceiveMessage(); receivingMessageUI.acceptFileTransfer(request); chatRoom.addClosingListener(new ChatRoomClosingListener() { public void closing() { receivingMessageUI.cancelTransfer(); } }); StyleConstants.setComponent(style, receivingMessageUI); // Insert the image at the end of the text try { doc.insertString(doc.getLength(), "ignored text", style); doc.insertString(doc.getLength(), "\n", null); } catch (BadLocationException e) { Log.error(e); } chatRoom.scrollToBottom(); SparkManager.getChatManager().getChatContainer().fireNotifyOnMessage(chatRoom); }
|
public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactItem contactItem = contactList.getContactItemByJID(bareJID); ChatRoom chatRoom; if (contactItem != null) { chatRoom = SparkManager.getChatManager().createChatRoom(bareJID, contactItem.getNickname(), contactItem.getNickname()); } else { chatRoom = SparkManager.getChatManager().createChatRoom(bareJID, bareJID, bareJID); } TranscriptWindow transcriptWindow = chatRoom.getTranscriptWindow(); StyledDocument doc = (StyledDocument)transcriptWindow.getDocument(); // The image must first be wrapped in a style Style style = doc.addStyle("StyleName", null); final ReceiveMessage receivingMessageUI = new ReceiveMessage(); receivingMessageUI.acceptFileTransfer(request); chatRoom.addClosingListener(new ChatRoomClosingListener() { public void closing() { receivingMessageUI.cancelTransfer(); } }); StyleConstants.setComponent(style, receivingMessageUI); // Insert the image at the end of the text try { doc.insertString(doc.getLength(), "ignored text", style); doc.insertString(doc.getLength(), "\n", null); } catch (BadLocationException e) { Log.error(e); } chatRoom.scrollToBottom(); SparkManager.getChatManager().getChatContainer().fireNotifyOnMessage(chatRoom); }
| 3,239,464
|
public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactItem contactItem = contactList.getContactItemByJID(bareJID); ChatRoom chatRoom; if (contactItem != null) { chatRoom = SparkManager.getChatManager().createChatRoom(bareJID, contactItem.getNickname(), contactItem.getNickname()); } else { chatRoom = SparkManager.getChatManager().createChatRoom(bareJID, bareJID, bareJID); } TranscriptWindow transcriptWindow = chatRoom.getTranscriptWindow(); StyledDocument doc = (StyledDocument)transcriptWindow.getDocument(); // The image must first be wrapped in a style Style style = doc.addStyle("StyleName", null); final ReceiveMessage receivingMessageUI = new ReceiveMessage(); receivingMessageUI.acceptFileTransfer(request); chatRoom.addClosingListener(new ChatRoomClosingListener() { public void closing() { receivingMessageUI.cancelTransfer(); } }); StyleConstants.setComponent(style, receivingMessageUI); // Insert the image at the end of the text try { doc.insertString(doc.getLength(), "ignored text", style); doc.insertString(doc.getLength(), "\n", null); } catch (BadLocationException e) { Log.error(e); } chatRoom.scrollToBottom(); SparkManager.getChatManager().getChatContainer().fireNotifyOnMessage(chatRoom); }
|
public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactItem contactItem = contactList.getContactItemByJID(bareJID); ChatRoom chatRoom; if (contactItem != null) { chatRoom = SparkManager.getChatManager().createChatRoom(bareJID, contactItem.getNickname(), contactItem.getNickname()); } else { chatRoom = SparkManager.getChatManager().createChatRoom(bareJID, bareJID, bareJID); } TranscriptWindow transcriptWindow = chatRoom.getTranscriptWindow(); StyledDocument doc = (StyledDocument)transcriptWindow.getDocument(); // The image must first be wrapped in a style Style style = doc.addStyle("StyleName", null); final ReceiveMessage receivingMessageUI = new ReceiveMessage(); receivingMessageUI.acceptFileTransfer(request); chatRoom.addClosingListener(new ChatRoomClosingListener() { public void closing() { receivingMessageUI.cancelTransfer(); } }); StyleConstants.setComponent(style, receivingMessageUI); // Insert the image at the end of the text try { doc.insertString(doc.getLength(), "ignored text", style); doc.insertString(doc.getLength(), "\n", null); } catch (BadLocationException e) { Log.error(e); } chatRoom.scrollToBottom(); SparkManager.getChatManager().getChatContainer().fireNotifyOnMessage(chatRoom); }
| 3,239,465
|
public void actionPerformed(ActionEvent e) { SwingWorker worker = new SwingWorker() { public Object construct() { try { Thread.sleep(10); } catch (InterruptedException e1) { Log.error(e1); } return "delay"; } public void finished() { ChatRoomImpl roomImpl = (ChatRoomImpl)room; getFileChooser().setDialogTitle("Select File(s) to send"); getFileChooser().setMultiSelectionEnabled(true); int ok = getFileChooser().showOpenDialog(roomImpl); if (ok != JFileChooser.APPROVE_OPTION) { return; } File[] file = getFileChooser().getSelectedFiles(); if (file == null || file.length == 0) { return; } final int no = file.length; for (int i = 0; i < no; i++) { File sendFile = file[i]; if (sendFile.exists()) { defaultDirectory = sendFile.getParentFile(); sendFile(sendFile, roomImpl.getParticipantJID()); } } } }; worker.start(); }
|
public void actionPerformed(ActionEvent e) { SwingWorker worker = new SwingWorker() { public Object construct() { try { Thread.sleep(10); } catch (InterruptedException e1) { Log.error(e1); } return "delay"; } public void finished() { ChatRoomImpl roomImpl = (ChatRoomImpl)room; getFileChooser().setDialogTitle("Select File(s) to send"); getFileChooser().setMultiSelectionEnabled(true); int ok = getFileChooser().showOpenDialog(roomImpl); if (ok != JFileChooser.APPROVE_OPTION) { return; } File[] file = getFileChooser().getSelectedFiles(); if (file == null || file.length == 0) { return; } final int no = file.length; for (int i = 0; i < no; i++) { File sendFile = file[i]; if (sendFile.exists()) { defaultDirectory = sendFile.getParentFile(); sendFile(sendFile, roomImpl.getParticipantJID()); } } } }; worker.start(); }
| 3,239,466
|
public void processPacket(Packet packet) { Presence presence = (Presence)packet; if (presence == null || presence.getType() == Presence.Type.unavailable) { if (transfer != null) { transfer.cancel(); } } }
|
public void processPacket(Packet packet) { Presence presence = (Presence)packet; if (presence == null || presence.getType() == Presence.Type.unavailable) { if (transfer != null) { transfer.cancel(); } } }
| 3,239,467
|
public Object construct() { try { Robot robot = new Robot(); Rectangle area = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()); return robot.createScreenCapture(area); } catch (AWTException e) { Log.error(e); } return null; }
|
public Object construct() { try { Robot robot = new Robot(); Rectangle area = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()); return robot.createScreenCapture(area); } catch (AWTException e) { Log.error(e); } return null; }
| 3,239,469
|
public void finished() { BufferedImage bufferedImage = (BufferedImage)get(); if (bufferedImage != null) { sendImage(bufferedImage, room); } button.setEnabled(true); room.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); }
|
public void finished() { BufferedImage bufferedImage = (BufferedImage)get(); if (bufferedImage != null) { sendImage(bufferedImage, room); } button.setEnabled(true); room.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); }
| 3,239,470
|
public void finished() { BufferedImage bufferedImage = (BufferedImage)get(); if (bufferedImage != null) { sendImage(bufferedImage, room); } button.setEnabled(true); room.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); }
|
public void finished() { BufferedImage bufferedImage = (BufferedImage)get(); if (bufferedImage != null) { sendImage(bufferedImage, room); } button.setEnabled(true); room.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); }
| 3,239,471
|
public void testFilesFourDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(1000000001)); assertEquals("/OME/OMEIS/Files/Dir-001/Dir-000/Dir-000/1000000001", path); }
|
public void testFilesFourDirectoryLowerBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(1000000001)); assertEquals("/OME/OMEIS/Files/Dir-001/Dir-000/Dir-000/1000000001", path); }
| 3,239,472
|
public void testFilesFourDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getFilesPath((long)Integer.MAX_VALUE); assertEquals("/OME/OMEIS/Files/Dir-002/Dir-147/Dir-483/2147483647", path); }
|
public void testFilesFourDirectoryUpperBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getFilesPath((long)Integer.MAX_VALUE); assertEquals("/OME/OMEIS/Files/Dir-002/Dir-147/Dir-483/2147483647", path); }
| 3,239,473
|
public void testFilesSingleDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(1)); assertEquals("/OME/OMEIS/Files/1", path); }
|
public void testFilesSingleDirectoryLowerBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(1)); assertEquals("/OME/OMEIS/Files/1", path); }
| 3,239,474
|
public void testFilesSingleDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(999)); assertEquals("/OME/OMEIS/Files/999", path); }
|
public void testFilesSingleDirectoryUpperBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(999)); assertEquals("/OME/OMEIS/Files/999", path); }
| 3,239,475
|
public void testFilesThreeDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(1000001)); assertEquals("/OME/OMEIS/Files/Dir-001/Dir-000/1000001", path); }
|
public void testFilesThreeDirectoryLowerBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(1000001)); assertEquals("/OME/OMEIS/Files/Dir-001/Dir-000/1000001", path); }
| 3,239,476
|
public void testFilesThreeDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(999999999)); assertEquals("/OME/OMEIS/Files/Dir-999/Dir-999/999999999", path); }
|
public void testFilesThreeDirectoryUpperBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(999999999)); assertEquals("/OME/OMEIS/Files/Dir-999/Dir-999/999999999", path); }
| 3,239,477
|
public void testFilesTwoDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(1001)); assertEquals("/OME/OMEIS/Files/Dir-001/1001", path); }
|
public void testFilesTwoDirectoryLowerBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(1001)); assertEquals("/OME/OMEIS/Files/Dir-001/1001", path); }
| 3,239,478
|
public void testFilesTwoDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(999999)); assertEquals("/OME/OMEIS/Files/Dir-999/999999", path); }
|
public void testFilesTwoDirectoryUpperBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(999999)); assertEquals("/OME/OMEIS/Files/Dir-999/999999", path); }
| 3,239,479
|
public void testPixelsFourDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(1000000001)); assertEquals("/OME/OMEIS/Pixels/Dir-001/Dir-000/Dir-000/1000000001", path); }
|
public void testPixelsFourDirectoryLowerBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(1000000001)); assertEquals("/OME/OMEIS/Pixels/Dir-001/Dir-000/Dir-000/1000000001", path); }
| 3,239,480
|
public void testPixelsFourDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath((long)Integer.MAX_VALUE); assertEquals("/OME/OMEIS/Pixels/Dir-002/Dir-147/Dir-483/2147483647", path); }
|
public void testPixelsFourDirectoryUpperBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getPixelsPath((long)Integer.MAX_VALUE); assertEquals("/OME/OMEIS/Pixels/Dir-002/Dir-147/Dir-483/2147483647", path); }
| 3,239,481
|
public void testPixelsSingleDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(1)); assertEquals("/OME/OMEIS/Pixels/1", path); }
|
public void testPixelsSingleDirectoryLowerBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(1)); assertEquals("/OME/OMEIS/Pixels/1", path); }
| 3,239,482
|
public void testPixelsSingleDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(999)); assertEquals("/OME/OMEIS/Pixels/999", path); }
|
public void testPixelsSingleDirectoryUpperBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(999)); assertEquals("/OME/OMEIS/Pixels/999", path); }
| 3,239,483
|
public void testPixelsThreeDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(1000001)); assertEquals("/OME/OMEIS/Pixels/Dir-001/Dir-000/1000001", path); }
|
public void testPixelsThreeDirectoryLowerBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(1000001)); assertEquals("/OME/OMEIS/Pixels/Dir-001/Dir-000/1000001", path); }
| 3,239,484
|
public void testPixelsThreeDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(999999999)); assertEquals("/OME/OMEIS/Pixels/Dir-999/Dir-999/999999999", path); }
|
public void testPixelsThreeDirectoryUpperBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(999999999)); assertEquals("/OME/OMEIS/Pixels/Dir-999/Dir-999/999999999", path); }
| 3,239,485
|
public void testPixelsTwoDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(1001)); assertEquals("/OME/OMEIS/Pixels/Dir-001/1001", path); }
|
public void testPixelsTwoDirectoryLowerBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(1001)); assertEquals("/OME/OMEIS/Pixels/Dir-001/1001", path); }
| 3,239,486
|
public void testPixelsTwoDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(999999)); assertEquals("/OME/OMEIS/Pixels/Dir-999/999999", path); }
|
public void testPixelsTwoDirectoryUpperBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(999999)); assertEquals("/OME/OMEIS/Pixels/Dir-999/999999", path); }
| 3,239,487
|
void decreaseIndentation() { indent -= indentRate; }
|
void decreaseIndentation() { indent -= indentRate; }
| 3,239,488
|
void increaseIndentation() { indent += indentRate; }
|
void increaseIndentation() { indent += indentRate; }
| 3,239,489
|
static private String[] tokenize(String list) { StringTokenizer st = new StringTokenizer(list," \t\n\f\r;,"); String[] tokens = new String[st.countTokens()]; int i = 0; while (st.hasMoreElements()) { tokens[i] = st.nextToken(); } return tokens; }
|
static private String[] tokenize(String list) { StringTokenizer st = new StringTokenizer(list," \t\n\f\r;,"); String[] tokens = new String[st.countTokens()]; int i = 0; while (st.hasMoreElements()) { tokens[i] = st.nextToken(); } return tokens; }
| 3,239,490
|
public void minZoomLevelChanged(double level) { System.err.println("minzoom change: "+level); int val = (int)Math.round(level*100); if(slider.getValue() < val) { slider.setValue(val); } slider.setMinimum(val); }
|
public void minZoomLevelChanged(double level) { int val = (int)Math.round(level*100); if(slider.getValue() < val) { slider.setValue(val); } slider.setMinimum(val); }
| 3,239,492
|
public void zoomLevelChanged(double level) { System.err.println("zoom changed: "+level); if(!slider.getValueIsAdjusting()) { int val = (int)Math.round(level*100); slider.setValue(val); } }
|
public void zoomLevelChanged(double level) { if(!slider.getValueIsAdjusting()) { int val = (int)Math.round(level*100); slider.setValue(val); } }
| 3,239,494
|
public void cameraBoundsChanged(double valueX, double valueY, double extentX, double extentY, double width, double height) { int iX = (int)Math.round(valueX); int iY = (int)Math.round(valueY); int iEX = (int)Math.round(extentX); int iEY = (int)Math.round(extentY); int iW = (int)Math.round(width); int iH = (int)Math.round(height); System.err.println("bounds: ["+iX+","+iY+","+iEX+"," +iEY+","+iW+","+iH+"]"); BoundedRangeModel horizModel = horizontalBar.getModel(); BoundedRangeModel vertModel = verticalBar.getModel(); if(iEX+iX > iW) horizontalBar.setEnabled(false); else { horizontalBar.setEnabled(true); if(iW != horizModel.getMaximum() || iEX != horizModel.getExtent()) { BoundedRangeModel hModel = new DefaultBoundedRangeModel(iX,iEX,0,iW); horizontalBar.setModel(hModel); } else { horizModel.setValue(iX); } } if(iEY+iY > iH) verticalBar.setEnabled(false); else { verticalBar.setEnabled(true); if(iH != vertModel.getMaximum() || iEY != vertModel.getExtent()) { BoundedRangeModel vModel = new DefaultBoundedRangeModel(iY,iEY,0,iH); verticalBar.setModel(vModel); } else { horizModel.setValue(iY); } } }
|
public void cameraBoundsChanged(double valueX, double valueY, double extentX, double extentY, double width, double height) { int iX = (int)Math.round(valueX); int iY = (int)Math.round(valueY); int iEX = (int)Math.round(extentX); int iEY = (int)Math.round(extentY); int iW = (int)Math.round(width); int iH = (int)Math.round(height); System.err.println("bounds: ["+iX+","+iY+","+iEX+"," +iEY+","+iW+","+iH+"]"); BoundedRangeModel horizModel = horizontalBar.getModel(); BoundedRangeModel vertModel = verticalBar.getModel(); if(iEX+iX > iW) horizontalBar.setEnabled(false); else { horizontalBar.setEnabled(true); if(iW != horizModel.getMaximum() || iEX != horizModel.getExtent()) { BoundedRangeModel hModel = new DefaultBoundedRangeModel(iX,iEX,0,iW); horizontalBar.setModel(hModel); } else { horizModel.setValue(iX); } } if(iEY+iY > iH) verticalBar.setEnabled(false); else { verticalBar.setEnabled(true); if(iH != vertModel.getMaximum() || iEY != vertModel.getExtent()) { BoundedRangeModel vModel = new DefaultBoundedRangeModel(iY,iEY,0,iH); verticalBar.setModel(vModel); } else { horizModel.setValue(iY); } } }
| 3,239,495
|
public void cameraBoundsChanged(double valueX, double valueY, double extentX, double extentY, double width, double height) { int iX = (int)Math.round(valueX); int iY = (int)Math.round(valueY); int iEX = (int)Math.round(extentX); int iEY = (int)Math.round(extentY); int iW = (int)Math.round(width); int iH = (int)Math.round(height); System.err.println("bounds: ["+iX+","+iY+","+iEX+"," +iEY+","+iW+","+iH+"]"); BoundedRangeModel horizModel = horizontalBar.getModel(); BoundedRangeModel vertModel = verticalBar.getModel(); if(iEX+iX > iW) horizontalBar.setEnabled(false); else { horizontalBar.setEnabled(true); if(iW != horizModel.getMaximum() || iEX != horizModel.getExtent()) { BoundedRangeModel hModel = new DefaultBoundedRangeModel(iX,iEX,0,iW); horizontalBar.setModel(hModel); } else { horizModel.setValue(iX); } } if(iEY+iY > iH) verticalBar.setEnabled(false); else { verticalBar.setEnabled(true); if(iH != vertModel.getMaximum() || iEY != vertModel.getExtent()) { BoundedRangeModel vModel = new DefaultBoundedRangeModel(iY,iEY,0,iH); verticalBar.setModel(vModel); } else { horizModel.setValue(iY); } } }
|
public void cameraBoundsChanged(double valueX, double valueY, double extentX, double extentY, double width, double height) { int iX = (int)Math.round(valueX); int iY = (int)Math.round(valueY); int iEX = (int)Math.round(extentX); int iEY = (int)Math.round(extentY); int iW = (int)Math.round(width); int iH = (int)Math.round(height); System.err.println("bounds: ["+iX+","+iY+","+iEX+"," +iEY+","+iW+","+iH+"]"); BoundedRangeModel horizModel = horizontalBar.getModel(); BoundedRangeModel vertModel = verticalBar.getModel(); if(iEX+iX > iW) horizontalBar.setEnabled(false); else { horizontalBar.setEnabled(true); if(iW != horizModel.getMaximum() || iEX != horizModel.getExtent()) { BoundedRangeModel hModel = new DefaultBoundedRangeModel(iX,iEX,0,iW); horizontalBar.setModel(hModel); } else { horizModel.setValue(iX); } } if(iEY+iY > iH) verticalBar.setEnabled(false); else { verticalBar.setEnabled(true); if(iH != vertModel.getMaximum() || iEY != vertModel.getExtent()) { BoundedRangeModel vModel = new DefaultBoundedRangeModel(iY,iEY,0,iH); verticalBar.setModel(vModel); } else { vertModel.setValue(iY); } } }
| 3,239,496
|
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); initButtons(); initSlider(v); initTextBoxes(rgba, v); initColorPanel(c); buildGUI(); contents.setSize(WIN_W, WIN_H); contentPane.add(contents); ccManager.attachListeners(); setResizable(false); setSize(WIN_W+W_EXTRA, WIN_H+H_EXTRA); }
|
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); initButtons(); initSlider(v); initTextBoxes(rgba, v); initColorPanel(c); buildGUI(); contents.setSize(WIN_W, WIN_H); contentPane.add(contents); ccManager.attachListeners(); setResizable(false); setSize(WIN_W+W_EXTRA, WIN_H+H_EXTRA); }
| 3,239,497
|
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); initButtons(); initSlider(v); initTextBoxes(rgba, v); initColorPanel(c); buildGUI(); contents.setSize(WIN_W, WIN_H); contentPane.add(contents); ccManager.attachListeners(); setResizable(false); setSize(WIN_W+W_EXTRA, WIN_H+H_EXTRA); }
|
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); initButtons(); initSlider(v); initTextBoxes(rgba, v); initColorPanel(c); buildGUI(); contents.setSize(WIN_W, WIN_H); contentPane.add(contents); ccManager.attachListeners(); setResizable(false); setSize(WIN_W+W_EXTRA, WIN_H+H_EXTRA); }
| 3,239,498
|
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); initButtons(); initSlider(v); initTextBoxes(rgba, v); initColorPanel(c); buildGUI(); contents.setSize(WIN_W, WIN_H); contentPane.add(contents); ccManager.attachListeners(); setResizable(false); setSize(WIN_W+W_EXTRA, WIN_H+H_EXTRA); }
|
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); initButtons(); initSlider(v); initTextBoxes(rgba, v); initColorPanel(c); buildGUI(); contents.setSize(WIN_W, WIN_H); contentPane.add(contents); ccManager.attachListeners(); setResizable(false); setSize(WIN_W+W_EXTRA, WIN_H+H_EXTRA); }
| 3,239,499
|
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); initButtons(); initSlider(v); initTextBoxes(rgba, v); initColorPanel(c); buildGUI(); contents.setSize(WIN_W, WIN_H); contentPane.add(contents); ccManager.attachListeners(); setResizable(false); setSize(WIN_W+W_EXTRA, WIN_H+H_EXTRA); }
|
publicColorChooser(ChannelBindingscb) { int[]rgba=cb.getRGBA(); intv=(int)(rgba[ALPHA]*100/255); Colorc=newColor(rgba[RED],rgba[GREEN],rgba[BLUE],rgba[ALPHA]); ccManager=newColorChooserManager(this,rgba,v); cp=newColorPalette(ccManager); ContainercontentPane=super.getContentPane(); initButtons(); initSlider(v); initTextBoxes(rgba,v); initColorPanel(c); buildGUI(); contents.setSize(WIN_W,WIN_H); contentPane.add(contents); ccManager.attachListeners(); setResizable(false); setSize(WIN_W+W_EXTRA,WIN_H+H_EXTRA); }
| 3,239,500
|
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); initButtons(); initSlider(v); initTextBoxes(rgba, v); initColorPanel(c); buildGUI(); contents.setSize(WIN_W, WIN_H); contentPane.add(contents); ccManager.attachListeners(); setResizable(false); setSize(WIN_W+W_EXTRA, WIN_H+H_EXTRA); }
|
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); initButtons(); initSlider(v); initTextBoxes(rgba, v); initColorPanel(c); buildGUI(); contents.setSize(WIN_W, WIN_H); contentPane.add(contents); ccManager.attachListeners(); setResizable(false); setSize(WIN_W+W_EXTRA, WIN_H+H_EXTRA); }
| 3,239,501
|
private JPanel builButtonPanel() { JPanel p = new JPanel(); p.setLayout(null); applyButton.setBounds(0, 0, WBUTTON, 20); saveButton.setBounds(WBUTTON+3, 0, WBUTTON, 20); cancelButton.setBounds(2*(WBUTTON+3), 0, WBUTTON, 20); p.add(applyButton); p.add(saveButton); p.add(cancelButton); p.setBounds(BORDER, ColorPalette.HEIGHT_LP+2*(HEIGHT_BOX+VSPACE), 220, HEIGHT_BOX); return p; }
|
private JPanel builButtonPanel() { JPanel p = new JPanel(); p.setLayout(null); applyButton.setBounds(0, 0, WBUTTON, 20); saveButton.setBounds(WBUTTON+3, 0, WBUTTON, 20); cancelButton.setBounds(2*(WBUTTON+3), 0, WBUTTON, 20); p.add(applyButton); p.add(saveButton); p.add(cancelButton); p.setBounds(BORDER, ColorPalette.HEIGHT_LP+2*(HEIGHT_BOX+VSPACE), 220, HEIGHT_BOX); return p; }
| 3,239,502
|
private JPanel builButtonPanel() { JPanel p = new JPanel(); p.setLayout(null); applyButton.setBounds(0, 0, WBUTTON, 20); saveButton.setBounds(WBUTTON+3, 0, WBUTTON, 20); cancelButton.setBounds(2*(WBUTTON+3), 0, WBUTTON, 20); p.add(applyButton); p.add(saveButton); p.add(cancelButton); p.setBounds(BORDER, ColorPalette.HEIGHT_LP+2*(HEIGHT_BOX+VSPACE), 220, HEIGHT_BOX); return p; }
|
private JPanel builButtonPanel() { JPanel p = new JPanel(); p.setLayout(null); applyButton.setBounds(0, 0, WBUTTON, 20); saveButton.setBounds(WBUTTON+3, 0, WBUTTON, 20); cancelButton.setBounds(2*(WBUTTON+3), 0, WBUTTON, 20); p.add(applyButton); p.add(saveButton); p.add(cancelButton); p.setBounds(BORDER, ColorPalette.HEIGHT_LP+2*(HEIGHT_BOX+VSPACE), 220, HEIGHT_BOX); return p; }
| 3,239,503
|
private JPanel buildAlphaPanel() { JPanel p = new JPanel(); JLabel label = new JLabel("Alpha "); p.setLayout(null); int size = ColorPalette.WIDTH_PANEL-2*WIDTH_BOX; label.setBounds(0, 0, WLABEL, HEIGHT_BOX); alphaTextField.setBounds(WLABEL, 0, WIDTH_BOX, HEIGHT_BOX); alphaSlider.setBounds(WLABEL+WIDTH_BOX+2*BOX_SPACE, 0, size, HEIGHT_BOX); p.add(label); p.add(alphaTextField); p.add(alphaSlider); p.setBounds(3*BORDER, ColorPalette.HEIGHT_LP+HEIGHT_BOX+VSPACE, ColorPalette.WIDTH_PANEL+2*HSPACE, HEIGHT_BOX); return p; }
|
private JPanel buildAlphaPanel() { JPanel p = new JPanel(); JLabel label = new JLabel("Alpha "); p.setLayout(null); int size = ColorPalette.WIDTH_PANEL-2*WIDTH_BOX; label.setBounds(0, 0, WLABEL, HEIGHT_BOX); alphaTextField.setBounds(WLABEL, 0, WIDTH_BOX, HEIGHT_BOX); alphaSlider.setBounds(WLABEL+WIDTH_BOX+2*BOX_SPACE, 0, size, HEIGHT_BOX); p.add(label); p.add(alphaTextField); p.add(alphaSlider); p.setBounds(4*BORDER, ColorPalette.HEIGHT_LP+HEIGHT_BOX+VSPACE, ColorPalette.WIDTH_PANEL+2*HSPACE, HEIGHT_BOX); return p; }
| 3,239,504
|
private void initButtons() { saveButton = new JButton("Save"); applyButton = new JButton("Apply"); applyButton.setEnabled(false); cancelButton = new JButton("Cancel"); }
|
private void initButtons() { saveButton = new JButton("Save"); applyButton = new JButton("Apply"); applyButton.setEnabled(false); cancelButton = new JButton("Cancel"); }
| 3,239,505
|
private void initButtons() { saveButton = new JButton("Save"); applyButton = new JButton("Apply"); applyButton.setEnabled(false); cancelButton = new JButton("Cancel"); }
|
private void initButtons() { saveButton = new JButton("Save"); applyButton = new JButton("Apply"); applyButton.setEnabled(false); cancelButton = new JButton("Cancel"); }
| 3,239,506
|
public UnmarshalStream(Ruby ruby, InputStream in) throws IOException { super(in); this.runtime = ruby; in.read(); // Major in.read(); // Minor }
|
public UnmarshalStream(Ruby ruby, InputStream in) throws IOException { super(in); in.read(); // Major in.read(); // Minor }
| 3,239,507
|
public static Object convertRubyToJava(Ruby ruby, RubyObject rubyObject, Class javaClass) { if (rubyObject == ruby.getNil()) { return null; } if (javaClass.isArray()) { try { Class arrayClass = javaClass.getComponentType(); int len = (int)((RubyArray)rubyObject).length(); Object javaObject = Array.newInstance(arrayClass, len); for (int i = 0; i < len; i++) { Object item = convertRubyToJava(ruby, ((RubyArray)rubyObject).entry(i), arrayClass); Array.set(javaObject, i, item); } return javaObject; } catch (NegativeArraySizeException ex) { } } if (javaClass == Object.class) { javaClass = rubyObject.getJavaClass(); } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return new Boolean(rubyObject.isTrue()); } if (javaClass == Integer.TYPE || javaClass == Integer.class) { return new Integer((int)((RubyFixnum)rubyObject).getLongValue()); } if (javaClass == Long.TYPE || javaClass == Long.class) { return new Long(((RubyFixnum)rubyObject).getLongValue()); } if (javaClass == Float.TYPE || javaClass == Float.class) { return new Float((float)((RubyFloat)rubyObject).getDoubleValue()); } if (javaClass == Double.TYPE || javaClass == Double.class) { return new Double(((RubyFloat)rubyObject).getDoubleValue()); } if (javaClass == String.class) { return ((RubyString)rubyObject).getValue(); } return ((RubyJavaObject)rubyObject).getValue(); }
|
public static Object convertRubyToJava(Ruby ruby, RubyObject rubyObject, Class javaClass) { if (rubyObject == ruby.getNil()) { return null; } if (javaClass.isArray()) { try { Class arrayClass = javaClass.getComponentType(); int len = (int)((RubyArray)rubyObject).length(); Object javaObject = Array.newInstance(arrayClass, len); for (int i = 0; i < len; i++) { Object item = convertRubyToJava(ruby, ((RubyArray)rubyObject).entry(i), arrayClass); Array.set(javaObject, i, item); } return javaObject; } catch (NegativeArraySizeException ex) { } } if (javaClass == Object.class) { javaClass = rubyObject.getJavaClass(); } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return new Boolean(rubyObject.isTrue()); } if (javaClass == Integer.TYPE || javaClass == Integer.class) { return new Integer((int)((RubyFixnum)rubyObject).getLongValue()); } if (javaClass == Long.TYPE || javaClass == Long.class) { return new Long(((RubyFixnum)rubyObject).getLongValue()); } if (javaClass == Float.TYPE || javaClass == Float.class) { return new Float((float)((RubyFloat)rubyObject).getDoubleValue()); } if (javaClass == Double.TYPE || javaClass == Double.class) { return new Double(((RubyFloat)rubyObject).getDoubleValue()); } if (javaClass == String.class) { return ((RubyString)rubyObject).getValue(); } return ((RubyJavaObject)rubyObject).getValue(); }
| 3,239,508
|
public static Object convertRubyToJava(Ruby ruby, RubyObject rubyObject, Class javaClass) { if (rubyObject == ruby.getNil()) { return null; } if (javaClass.isArray()) { try { Class arrayClass = javaClass.getComponentType(); int len = (int)((RubyArray)rubyObject).length(); Object javaObject = Array.newInstance(arrayClass, len); for (int i = 0; i < len; i++) { Object item = convertRubyToJava(ruby, ((RubyArray)rubyObject).entry(i), arrayClass); Array.set(javaObject, i, item); } return javaObject; } catch (NegativeArraySizeException ex) { } } if (javaClass == Object.class) { javaClass = rubyObject.getJavaClass(); } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return new Boolean(rubyObject.isTrue()); } if (javaClass == Integer.TYPE || javaClass == Integer.class) { return new Integer((int)((RubyFixnum)rubyObject).getLongValue()); } if (javaClass == Long.TYPE || javaClass == Long.class) { return new Long(((RubyFixnum)rubyObject).getLongValue()); } if (javaClass == Float.TYPE || javaClass == Float.class) { return new Float((float)((RubyFloat)rubyObject).getDoubleValue()); } if (javaClass == Double.TYPE || javaClass == Double.class) { return new Double(((RubyFloat)rubyObject).getDoubleValue()); } if (javaClass == String.class) { return ((RubyString)rubyObject).getValue(); } return ((RubyJavaObject)rubyObject).getValue(); }
|
public static Object convertRubyToJava(Ruby ruby, RubyObject rubyObject, Class javaClass) { if (rubyObject == ruby.getNil()) { return null; } if (javaClass.isArray()) { try { Class arrayClass = javaClass.getComponentType(); int len = (int)((RubyArray)rubyObject).length(); Object javaObject = Array.newInstance(arrayClass, len); for (int i = 0; i < len; i++) { Object item = convertRubyToJava(ruby, ((RubyArray)rubyObject).entry(i), arrayClass); Array.set(javaObject, i, item); } return javaObject; } catch (NegativeArraySizeException ex) { } } if (javaClass == Object.class) { javaClass = rubyObject.getJavaClass(); } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return new Boolean(rubyObject.isTrue()); } if (javaClass == Integer.TYPE || javaClass == Integer.class) { return new Integer((int)((RubyFixnum)rubyObject).getLongValue()); } if (javaClass == Long.TYPE || javaClass == Long.class) { return new Long(((RubyFixnum)rubyObject).getLongValue()); } if (javaClass == Float.TYPE || javaClass == Float.class) { return new Float((float)((RubyFloat)rubyObject).getDoubleValue()); } if (javaClass == Double.TYPE || javaClass == Double.class) { return new Double(((RubyFloat)rubyObject).getDoubleValue()); } if (javaClass == String.class) { return ((RubyString)rubyObject).getValue(); } return ((RubyJavaObject)rubyObject).getValue(); }
| 3,239,509
|
private void synch(int val) { curT = val; view.getTField().setText(""+val); //doesn't fire ActionEvent manager.onTChange(curT); }
|
private void synch(int val) { curT = val; view.getTField().setText(""+val); view.repaint(); //doesn't fire ActionEvent manager.onTChange(curT); }
| 3,239,510
|
public Node literal_concat(ISourcePosition position, Node head, Node tail) { if (head == null) { assert tail == null || tail instanceof Node; return (Node) tail; } if (tail == null) { return head; } if (head instanceof EvStrNode) { head = new DStrNode(position).add(head); } if (tail instanceof StrNode) { if (head instanceof StrNode) { head = new StrNode(union(head, (Node) tail), ((StrNode) head).getValue() + ((StrNode) tail).getValue()); } else { ((ListNode) head).add((Node) tail); } } else if (tail instanceof DStrNode) { // Ruby actually has a special case for StrNode, but I cannot actually get one to // occur. I am asserting on ListNode to help flag the case. assert head instanceof ListNode; return list_concat((ListNode) head, tail); } else if (tail instanceof EvStrNode) { if (head instanceof StrNode) { head = new DStrNode(head.getPosition()).add(head); } ((DStrNode) head).add(tail); } return head; }
|
public Node literal_concat(ISourcePosition position, Node head, Node tail) { if (head == null) { assert tail == null || tail instanceof Node; return (Node) tail; } if (tail == null) { return head; } if (head instanceof EvStrNode) { head = new DStrNode(position).add(head); } if (tail instanceof StrNode) { if (head instanceof StrNode) { head = new StrNode(union(head, (Node) tail), ((StrNode) head).getValue() + ((StrNode) tail).getValue()); } else { ((ListNode) head).add((Node) tail); } } else if (tail instanceof DStrNode) { // Ruby actually has a special case for StrNode, but I cannot actually get one to // occur. I am asserting on ListNode to help flag the case. assert head instanceof ListNode; return list_concat((ListNode) head, tail); } else if (tail instanceof EvStrNode) { if (head instanceof StrNode) { head = new DStrNode(head.getPosition()).add(head); } ((DStrNode) head).add(tail); } return head; }
| 3,239,511
|
protected void onSetUp() throws Exception { super.onSetUp(); DataSource dataSource = (DataSource) applicationContext.getBean("dataSource"); data = new OMEData(); data.setDataSource(dataSource); iPojos = (IPojos) applicationContext.getBean("pojosService"); }
|
protected void onSetUp() throws Exception { super.onSetUp(); DataSource dataSource = (DataSource) applicationContext.getBean("dataSource"); data = new OMEData(); data.setDataSource(dataSource); iPojos = factory.getPojosService(); }
| 3,239,512
|
public Nil(Ruby ruby) { super(ruby, ruby.getClasses().getNilClass()); }
|
public Nil(Ruby ruby) { super(ruby, ruby.getClasses().getNilClass()); }
| 3,239,513
|
public RubyFixnum arity() { switch (bodyNode.getType()) { case Constants.NODE_CFUNC: return RubyFixnum.m_newFixnum(getRuby(), -1); case Constants.NODE_ZSUPER: return RubyFixnum.m_newFixnum(getRuby(), -1); case Constants.NODE_ATTRSET: return RubyFixnum.one(getRuby()); case Constants.NODE_IVAR: return RubyFixnum.zero(getRuby()); default: Node body = bodyNode.getNextNode(); /* skip NODE_SCOPE */ if (body instanceof BlockNode) { body = body.getHeadNode(); } if (body == null) { return RubyFixnum.zero(getRuby()); } int n = body.getCount(); if (body.getOptNode() != null || body.getRest() != -1) { n = -n-1; } return RubyFixnum.m_newFixnum(getRuby(), n); } }
|
public RubyFixnum arity() { switch (bodyNode.getType()) { case Constants.NODE_CFUNC: return RubyFixnum.m_newFixnum(getRuby(), -1); case Constants.NODE_ZSUPER: return RubyFixnum.m_newFixnum(getRuby(), -1); case Constants.NODE_ATTRSET: return RubyFixnum.one(getRuby()); case Constants.NODE_IVAR: return RubyFixnum.zero(getRuby()); default: Node body = bodyNode.getNextNode(); /* skip NODE_SCOPE */ if (body instanceof BlockNode) { body = body.getHeadNode(); } if (body == null) { return RubyFixnum.zero(getRuby()); } int n = body.getCount(); if (body.getOptNode() != null || body.getRest() != -1) { n = -n-1; } return RubyFixnum.m_newFixnum(getRuby(), n); } }
| 3,239,514
|
public Node getBodyNode() { return bodyNode; }
|
public Node getBodyNode() { return bodyNode; }
| 3,239,515
|
public RubyId getMethodId() { return methodId; }
|
public RubyId getMethodId() { return methodId; }
| 3,239,516
|
public RubyClass getOriginalClass() { return originalClass; }
|
public RubyClass getOriginalClass() { return originalClass; }
| 3,239,517
|
public RubyId getOriginalId() { return originalId; }
|
public RubyId getOriginalId() { return originalId; }
| 3,239,518
|
public RubyObject getReceiver() { return receiver; }
|
public RubyObject getReceiver() { return receiver; }
| 3,239,519
|
public RubyClass getReceiverClass() { return receiverClass; }
|
public RubyClass getReceiverClass() { return receiverClass; }
| 3,239,520
|
public RubyObject m_new(RubyObject[] args) { if (isSingleton()) { throw new RubyTypeException("can't create instance of virtual class"); } RubyObject obj = new RubyObject(getRuby(), this); // PUSH_ITER(rb_block_given_p()?ITER_PRE:ITER_NOT); obj.funcall(getRuby().intern("initialize"), args); // POP_ITER(); return obj; }
|
public RubyObject m_new(RubyObject[] args) { if (isSingleton()) { throw new RubyTypeException("can't create instance of virtual class"); } RubyObject obj = new RubyObject(getRuby(), this); // PUSH_ITER(rb_block_given_p()?ITER_PRE:ITER_NOT); obj.callInit( args); // POP_ITER(); return obj; }
| 3,239,521
|
public String toString(){ return "DatasetAnnotation"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); }
|
public String toString(){ return "DatasetAnnotation"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId); }
| 3,239,522
|
DatasetEditorManager(DatasetEditor view, DataManagerCtrl agentCtrl, DatasetData model) { this.view = view; this.agentCtrl = agentCtrl; this.model = model; nameChange = false; isName = false; imagesToRemove = new ArrayList(); imagesToAdd = new ArrayList(); imagesToAddToRemove = new ArrayList(); }
|
DatasetEditorManager(DatasetEditor view, DataManagerCtrl agentCtrl, DatasetData model) { this.view = view; this.agentCtrl = agentCtrl; this.model = model; nameChange = false; isName = false; imagesToRemove = new ArrayList(); imagesToAdd = new ArrayList(); imagesToAddToRemove = new ArrayList(); }
| 3,239,523
|
void initListeners() { //buttons attachButtonListener(view.getViewButton(), VIEW); attachButtonListener(view.getSaveButton(), SAVE); attachButtonListener(view.getAddButton(), ADD); attachButtonListener(view.getRemoveButton(), REMOVE); attachButtonListener(view.getResetButton(), RESET); attachButtonListener(view.getRemoveToAddButton(), REMOVE_ADDED); attachButtonListener(view.getResetToAddButton(), RESET_ADDED); //textfields JTextArea nameField = view.getNameArea(); nameField.getDocument().addDocumentListener(this); nameField.addMouseListener(this); JTextArea descriptionArea = view.getDescriptionArea(); descriptionArea.getDocument().addDocumentListener(this); }
|
void initListeners() { //buttons attachButtonListener(view.getViewButton(), VIEW); attachButtonListener(view.getSaveButton(), SAVE); attachButtonListener(view.getAddButton(), ADD); attachButtonListener(view.getRemoveButton(), REMOVE); attachButtonListener(view.getResetButton(), RESET); attachButtonListener(view.getRemoveToAddButton(), REMOVE_ADDED); attachButtonListener(view.getResetToAddButton(), RESET_ADDED); //textfields JTextArea nameField = view.getNameArea(); nameField.getDocument().addDocumentListener(this); nameField.addMouseListener(this); JTextArea descriptionArea = view.getDescriptionArea(); descriptionArea.getDocument().addDocumentListener(this); }
| 3,239,524
|
public void insertUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); }
|
public void insertUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); }
| 3,239,525
|
public void removeUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); }
|
public void removeUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); }
| 3,239,526
|
public static void log( Object o ) { //if LOG was given if( LOG == true ) { if( ( logfile = getLogFile( ) ) == null ) { logfile = createLogFile( ); } if( logfile != null ) { if( o == null ) { o = "null"; } logfile.println( o ); if( o instanceof Throwable ) { ( (Throwable) o ).printStackTrace( logfile ); } logfile.flush( ); //logfile.close(); //logFile = null; } else { System.err.println( "Cannot write into logfile: (" + logfile + ") <- '" + o + "'" ); } } }
|
public static void log( Object o ) { //if LOG was given if(LOG ) { if( ( logfile = getLogFile( ) ) == null ) { logfile = createLogFile( ); } if( logfile != null ) { if( o == null ) { o = "null"; } logfile.println( o ); if( o instanceof Throwable ) { ( (Throwable) o ).printStackTrace( logfile ); } logfile.flush( ); //logfile.close(); //logFile = null; } else { System.err.println( "Cannot write into logfile: (" + logfile + ") <- '" + o + "'" ); } } }
| 3,239,528
|
public static void log( Object o ) { //if LOG was given if( LOG == true ) { if( ( logfile = getLogFile( ) ) == null ) { logfile = createLogFile( ); } if( logfile != null ) { if( o == null ) { o = "null"; } logfile.println( o ); if( o instanceof Throwable ) { ( (Throwable) o ).printStackTrace( logfile ); } logfile.flush( ); //logfile.close(); //logFile = null; } else { System.err.println( "Cannot write into logfile: (" + logfile + ") <- '" + o + "'" ); } } }
|
public static void log( Object o ) { //if LOG was given if( LOG == true ) { if( ( logfile = getLogFile( ) ) == null ) { logfile = createLogFile( ); } if( logfile != null ) { if( o == null ) { o = "null"; } logfile.println( o ); if( o instanceof Throwable ) { ( (Throwable) o ).printStackTrace( logfile ); } logfile.flush( ); //logfile.close(); //logFile = null; } else { System.err.println( "Cannot write into logfile: (" + logfile + ") <- '" + o + "'" ); } } }
| 3,239,529
|
public AutomatedInstaller(String inputFilename) throws Exception { super(); File input = new File(inputFilename); // Loads the installation data AutomatedInstallData idata = new AutomatedInstallData(); // Loads the installation data loadInstallData(idata); // Loads the xml data idata.xmlData = getXMLData(input); // Loads the langpack idata.localeISO3 = idata.xmlData.getAttribute("langpack", "eng"); InputStream in = getClass().getResourceAsStream("/langpacks/" + idata.localeISO3 + ".xml"); idata.langpack = new LocaleDatabase(in); idata.setVariable(ScriptParser.ISO3_LANG, idata.localeISO3); // create the resource manager singleton ResourceManager.create (idata); this.panelInstanceCount = new TreeMap(); doInstall(idata); }
|
public AutomatedInstaller(String inputFilename) throws Exception { super(); File input = new File(inputFilename); // Loads the installation data // Loads the installation data loadInstallData(idata); // Loads the xml data idata.xmlData = getXMLData(input); // Loads the langpack idata.localeISO3 = idata.xmlData.getAttribute("langpack", "eng"); InputStream in = getClass().getResourceAsStream("/langpacks/" + idata.localeISO3 + ".xml"); idata.langpack = new LocaleDatabase(in); idata.setVariable(ScriptParser.ISO3_LANG, idata.localeISO3); // create the resource manager singleton ResourceManager.create (idata); this.panelInstanceCount = new TreeMap(); doInstall(idata); }
| 3,239,530
|
public AutomatedInstaller(String inputFilename) throws Exception { super(); File input = new File(inputFilename); // Loads the installation data AutomatedInstallData idata = new AutomatedInstallData(); // Loads the installation data loadInstallData(idata); // Loads the xml data idata.xmlData = getXMLData(input); // Loads the langpack idata.localeISO3 = idata.xmlData.getAttribute("langpack", "eng"); InputStream in = getClass().getResourceAsStream("/langpacks/" + idata.localeISO3 + ".xml"); idata.langpack = new LocaleDatabase(in); idata.setVariable(ScriptParser.ISO3_LANG, idata.localeISO3); // create the resource manager singleton ResourceManager.create (idata); this.panelInstanceCount = new TreeMap(); doInstall(idata); }
|
public AutomatedInstaller(String inputFilename) throws Exception { super(); File input = new File(inputFilename); // Loads the installation data AutomatedInstallData idata = new AutomatedInstallData(); // Loads the installation data loadInstallData(idata); // Loads the xml data idata.xmlData = getXMLData(input); // Loads the langpack idata.localeISO3 = idata.xmlData.getAttribute("langpack", "eng"); InputStream in = getClass().getResourceAsStream("/langpacks/" + idata.localeISO3 + ".xml"); idata.langpack = new LocaleDatabase(in); idata.setVariable(ScriptParser.ISO3_LANG, idata.localeISO3); // create the resource manager singleton ResourceManager.create (idata); this.panelInstanceCount = new TreeMap(); doInstall(idata); }
| 3,239,531
|
public AutomatedInstaller(String inputFilename) throws Exception { super(); File input = new File(inputFilename); // Loads the installation data AutomatedInstallData idata = new AutomatedInstallData(); // Loads the installation data loadInstallData(idata); // Loads the xml data idata.xmlData = getXMLData(input); // Loads the langpack idata.localeISO3 = idata.xmlData.getAttribute("langpack", "eng"); InputStream in = getClass().getResourceAsStream("/langpacks/" + idata.localeISO3 + ".xml"); idata.langpack = new LocaleDatabase(in); idata.setVariable(ScriptParser.ISO3_LANG, idata.localeISO3); // create the resource manager singleton ResourceManager.create (idata); this.panelInstanceCount = new TreeMap(); doInstall(idata); }
|
public AutomatedInstaller(String inputFilename) throws Exception { super(); File input = new File(inputFilename); // Loads the installation data AutomatedInstallData idata = new AutomatedInstallData(); // Loads the installation data loadInstallData(idata); // Loads the xml data idata.xmlData = getXMLData(input); // Loads the langpack idata.localeISO3 = idata.xmlData.getAttribute("langpack", "eng"); InputStream in = getClass().getResourceAsStream("/langpacks/" + idata.localeISO3 + ".xml"); idata.langpack = new LocaleDatabase(in); idata.setVariable(ScriptParser.ISO3_LANG, idata.localeISO3); // create the resource manager singleton ResourceManager.create(idata); this.panelInstanceCount = new TreeMap(); doInstall(idata); }
| 3,239,532
|
public SoftReferenceObjectPool(PoolableObjectFactory factory) { _pool = new ArrayList(); _factory = factory; }
|
public SoftReferenceObjectPool() { _pool = new ArrayList(); _factory = factory; }
| 3,239,533
|
public SoftReferenceObjectPool(PoolableObjectFactory factory) { _pool = new ArrayList(); _factory = factory; }
|
public SoftReferenceObjectPool(PoolableObjectFactory factory) { _pool = new ArrayList(); _factory = null; }
| 3,239,534
|
public void run() { instances.add(this); try { listener.startUnpack(); String currentOs = System.getProperty("os.name").toLowerCase(); // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); List packs = idata.selectedPacks; int npacks = packs.size(); udata = UninstallData.getInstance(); // Specific to the web installers if (idata.kind.equalsIgnoreCase("web") || idata.kind.equalsIgnoreCase("web-kunststoff")) { InputStream kin = getClass().getResourceAsStream("/res/WebInstallers.url"); BufferedReader kreader = new BufferedReader(new InputStreamReader(kin)); jarLocation = kreader.readLine(); } // We unpack the selected packs for (int i = 0; i < npacks; i++) { // We get the pack stream int n = idata.availablePacks.indexOf(packs.get(i)); ObjectInputStream objIn = new ObjectInputStream(getPackAsStream(n)); // We unpack the files int nfiles = objIn.readInt(); listener.changeUnpack(0, nfiles, ((Pack) packs.get(i)).name); for (int j = 0; j < nfiles; j++) { // We read the header PackFile pf = (PackFile) objIn.readObject(); if (null == pf.os || currentOs.indexOf(pf.os.toLowerCase()) > -1) { // We translate & build the path String path = translatePath(pf.targetPath); File pathFile = new File(path); String fname = pathFile.getName(); int z = fname.length(); File dest = pathFile.getParentFile(); if (!dest.exists()) dest.mkdirs(); // We add the path to the log, udata.addFile(path); listener.progressUnpack(j, path); //if this file exists and shouldnot override skip this file if (((pf.override == false) && (pathFile.exists()))) { objIn.skip(pf.length); continue; } // We copy the file out = new FileOutputStream(path); byte[] buffer = new byte[5120]; long bytesCopied = 0; while (bytesCopied < pf.length) { int maxBytes = (pf.length - bytesCopied < buffer.length ? (int) (pf.length - bytesCopied) : buffer.length); int bytesInBuffer = objIn.read(buffer, 0, maxBytes); if (bytesInBuffer == -1) throw new IOException("Unexpected end of stream"); out.write(buffer, 0, bytesInBuffer); bytesCopied += bytesInBuffer; } // Cleanings out.close(); // Empty dirs restoring String _n = pathFile.getName(); if (_n.startsWith("izpack-keepme") && _n.endsWith(".tmp")) pathFile.delete(); } else objIn.skip(pf.length); } // Load information about parsable files int numParsables = objIn.readInt(); int k; for (k = 0; k < numParsables; k++) { ParsableFile pf = (ParsableFile) objIn.readObject(); pf.path = translatePath(pf.path); parsables.add(pf); } // Load information about executable files int numExecutables = objIn.readInt(); for (k = 0; k < numExecutables; k++) { ExecutableFile ef = (ExecutableFile) objIn.readObject(); ef.path = translatePath(ef.path); if (null != ef.argList && !ef.argList.isEmpty()) { String arg = null; for (int j = 0; j < ef.argList.size(); j++) { arg = (String) ef.argList.get(j); arg = translatePath(arg); ef.argList.set(j, arg); } } executables.add(ef); } objIn.close(); } // We use the scripts parser ScriptParser parser = new ScriptParser(parsables, vs); parser.parseFiles(); // We use the file executor FileExecutor executor = new FileExecutor(executables); if (executor.executeFiles() != 0) javax.swing.JOptionPane.showMessageDialog( null, "The installation was not completed.", "Installation warning", javax.swing.JOptionPane.WARNING_MESSAGE); // We put the uninstaller putUninstaller(); // The end :-) listener.stopUnpack(); } catch (Exception err) { listener.stopUnpack(); listener.errorUnpack(err.toString()); } instances.remove(instances.indexOf(this)); }
|
public void run() { instances.add(this); try { listener.startUnpack(); String currentOs = System.getProperty("os.name").toLowerCase(); // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); List packs = idata.selectedPacks; int npacks = packs.size(); udata = UninstallData.getInstance(); // Specific to the web installers if (idata.kind.equalsIgnoreCase("web") || idata.kind.equalsIgnoreCase("web-kunststoff")) { InputStream kin = getClass().getResourceAsStream("/res/WebInstallers.url"); BufferedReader kreader = new BufferedReader(new InputStreamReader(kin)); jarLocation = kreader.readLine(); } // We unpack the selected packs for (int i = 0; i < npacks; i++) { // We get the pack stream int n = idata.availablePacks.indexOf(packs.get(i)); ObjectInputStream objIn = new ObjectInputStream(getPackAsStream(n)); // We unpack the files int nfiles = objIn.readInt(); listener.changeUnpack(0, nfiles, ((Pack) packs.get(i)).name); for (int j = 0; j < nfiles; j++) { // We read the header PackFile pf = (PackFile) objIn.readObject(); if (null == pf.os || currentOs.indexOf(pf.os.toLowerCase()) > -1) { // We translate & build the path String path = translatePath(pf.targetPath); File pathFile = new File(path); String fname = pathFile.getName(); int z = fname.length(); File dest = pathFile.getParentFile(); if (!dest.exists()) dest.mkdirs(); // We add the path to the log, udata.addFile(path); listener.progressUnpack(j, path); //if this file exists and shouldnot override skip this file if (((pf.override == false) && (pathFile.exists()))) { objIn.skip(pf.length); continue; } // We copy the file out = new FileOutputStream(path); byte[] buffer = new byte[5120]; long bytesCopied = 0; while (bytesCopied < pf.length) { int maxBytes = (pf.length - bytesCopied < buffer.length ? (int) (pf.length - bytesCopied) : buffer.length); int bytesInBuffer = objIn.read(buffer, 0, maxBytes); if (bytesInBuffer == -1) throw new IOException("Unexpected end of stream"); out.write(buffer, 0, bytesInBuffer); bytesCopied += bytesInBuffer; } // Cleanings out.close(); // Empty dirs restoring String _n = pathFile.getName(); if (_n.startsWith("izpack-keepme") && _n.endsWith(".tmp")) pathFile.delete(); } else objIn.skip(pf.length); } // Load information about parsable files int numParsables = objIn.readInt(); int k; for (k = 0; k < numParsables; k++) { ParsableFile pf = (ParsableFile) objIn.readObject(); pf.path = translatePath(pf.path); parsables.add(pf); } // Load information about executable files int numExecutables = objIn.readInt(); for (k = 0; k < numExecutables; k++) { ExecutableFile ef = (ExecutableFile) objIn.readObject(); ef.path = translatePath(ef.path); if (null != ef.argList && !ef.argList.isEmpty()) { String arg = null; for (int j = 0; j < ef.argList.size(); j++) { arg = (String) ef.argList.get(j); arg = translatePath(arg); ef.argList.set(j, arg); } } executables.add(ef); } objIn.close(); } // We use the scripts parser ScriptParser parser = new ScriptParser(parsables, vs); parser.parseFiles(); // We use the file executor FileExecutor executor = new FileExecutor(executables); if (executor.executeFiles() != 0) javax.swing.JOptionPane.showMessageDialog( null, "The installation was not completed.", "Installation warning", javax.swing.JOptionPane.WARNING_MESSAGE); // We put the uninstaller putUninstaller(); // The end :-) listener.stopUnpack(); } catch (Exception err) { listener.stopUnpack(); listener.errorUnpack(err.toString()); } instances.remove(instances.indexOf(this)); }
| 3,239,535
|
public void run() { instances.add(this); try { listener.startUnpack(); String currentOs = System.getProperty("os.name").toLowerCase(); // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); List packs = idata.selectedPacks; int npacks = packs.size(); udata = UninstallData.getInstance(); // Specific to the web installers if (idata.kind.equalsIgnoreCase("web") || idata.kind.equalsIgnoreCase("web-kunststoff")) { InputStream kin = getClass().getResourceAsStream("/res/WebInstallers.url"); BufferedReader kreader = new BufferedReader(new InputStreamReader(kin)); jarLocation = kreader.readLine(); } // We unpack the selected packs for (int i = 0; i < npacks; i++) { // We get the pack stream int n = idata.availablePacks.indexOf(packs.get(i)); ObjectInputStream objIn = new ObjectInputStream(getPackAsStream(n)); // We unpack the files int nfiles = objIn.readInt(); listener.changeUnpack(0, nfiles, ((Pack) packs.get(i)).name); for (int j = 0; j < nfiles; j++) { // We read the header PackFile pf = (PackFile) objIn.readObject(); if (null == pf.os || currentOs.indexOf(pf.os.toLowerCase()) > -1) { // We translate & build the path String path = translatePath(pf.targetPath); File pathFile = new File(path); String fname = pathFile.getName(); int z = fname.length(); File dest = pathFile.getParentFile(); if (!dest.exists()) dest.mkdirs(); // We add the path to the log, udata.addFile(path); listener.progressUnpack(j, path); //if this file exists and shouldnot override skip this file if (((pf.override == false) && (pathFile.exists()))) { objIn.skip(pf.length); continue; } // We copy the file out = new FileOutputStream(path); byte[] buffer = new byte[5120]; long bytesCopied = 0; while (bytesCopied < pf.length) { int maxBytes = (pf.length - bytesCopied < buffer.length ? (int) (pf.length - bytesCopied) : buffer.length); int bytesInBuffer = objIn.read(buffer, 0, maxBytes); if (bytesInBuffer == -1) throw new IOException("Unexpected end of stream"); out.write(buffer, 0, bytesInBuffer); bytesCopied += bytesInBuffer; } // Cleanings out.close(); // Empty dirs restoring String _n = pathFile.getName(); if (_n.startsWith("izpack-keepme") && _n.endsWith(".tmp")) pathFile.delete(); } else objIn.skip(pf.length); } // Load information about parsable files int numParsables = objIn.readInt(); int k; for (k = 0; k < numParsables; k++) { ParsableFile pf = (ParsableFile) objIn.readObject(); pf.path = translatePath(pf.path); parsables.add(pf); } // Load information about executable files int numExecutables = objIn.readInt(); for (k = 0; k < numExecutables; k++) { ExecutableFile ef = (ExecutableFile) objIn.readObject(); ef.path = translatePath(ef.path); if (null != ef.argList && !ef.argList.isEmpty()) { String arg = null; for (int j = 0; j < ef.argList.size(); j++) { arg = (String) ef.argList.get(j); arg = translatePath(arg); ef.argList.set(j, arg); } } executables.add(ef); } objIn.close(); } // We use the scripts parser ScriptParser parser = new ScriptParser(parsables, vs); parser.parseFiles(); // We use the file executor FileExecutor executor = new FileExecutor(executables); if (executor.executeFiles() != 0) javax.swing.JOptionPane.showMessageDialog( null, "The installation was not completed.", "Installation warning", javax.swing.JOptionPane.WARNING_MESSAGE); // We put the uninstaller putUninstaller(); // The end :-) listener.stopUnpack(); } catch (Exception err) { listener.stopUnpack(); listener.errorUnpack(err.toString()); } instances.remove(instances.indexOf(this)); }
|
public void run() { instances.add(this); try { listener.startUnpack(); String currentOs = System.getProperty("os.name").toLowerCase(); // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); List packs = idata.selectedPacks; int npacks = packs.size(); udata = UninstallData.getInstance(); // Specific to the web installers if (idata.kind.equalsIgnoreCase("web") || idata.kind.equalsIgnoreCase("web-kunststoff")) { InputStream kin = getClass().getResourceAsStream("/res/WebInstallers.url"); BufferedReader kreader = new BufferedReader(new InputStreamReader(kin)); jarLocation = kreader.readLine(); } // We unpack the selected packs for (int i = 0; i < npacks; i++) { // We get the pack stream int n = idata.availablePacks.indexOf(packs.get(i)); ObjectInputStream objIn = new ObjectInputStream(getPackAsStream(n)); // We unpack the files int nfiles = objIn.readInt(); listener.changeUnpack(0, nfiles, ((Pack) packs.get(i)).name); for (int j = 0; j < nfiles; j++) { // We read the header PackFile pf = (PackFile) objIn.readObject(); if (null == pf.os || currentOs.indexOf(pf.os.toLowerCase()) > -1) { // We translate & build the path String path = translatePath(pf.targetPath); File pathFile = new File(path); String fname = pathFile.getName(); int z = fname.length(); File dest = pathFile.getParentFile(); if (!dest.exists()) dest.mkdirs(); // We add the path to the log, udata.addFile(path); listener.progressUnpack(j, path); //if this file exists and shouldnot override skip this file if (((pf.override == false) && (pathFile.exists()))) { objIn.skip(pf.length); continue; } // We copy the file out = new FileOutputStream(path); byte[] buffer = new byte[5120]; long bytesCopied = 0; while (bytesCopied < pf.length) { int maxBytes = (pf.length - bytesCopied < buffer.length ? (int) (pf.length - bytesCopied) : buffer.length); int bytesInBuffer = objIn.read(buffer, 0, maxBytes); if (bytesInBuffer == -1) throw new IOException("Unexpected end of stream"); out.write(buffer, 0, bytesInBuffer); bytesCopied += bytesInBuffer; } // Cleanings out.close(); // Empty dirs restoring String _n = pathFile.getName(); if (_n.startsWith("izpack-keepme") && _n.endsWith(".tmp")) pathFile.delete(); } else objIn.skip(pf.length); } // Load information about parsable files int numParsables = objIn.readInt(); int k; for (k = 0; k < numParsables; k++) { ParsableFile pf = (ParsableFile) objIn.readObject(); pf.path = translatePath(pf.path); parsables.add(pf); } // Load information about executable files int numExecutables = objIn.readInt(); for (k = 0; k < numExecutables; k++) { ExecutableFile ef = (ExecutableFile) objIn.readObject(); ef.path = translatePath(ef.path); if (null != ef.argList && !ef.argList.isEmpty()) { String arg = null; for (int j = 0; j < ef.argList.size(); j++) { arg = (String) ef.argList.get(j); arg = translatePath(arg); ef.argList.set(j, arg); } } executables.add(ef); } objIn.close(); } // We use the scripts parser ScriptParser parser = new ScriptParser(parsables, vs); parser.parseFiles(); // We use the file executor FileExecutor executor = new FileExecutor(executables); if (executor.executeFiles(ExecutableFile.POSTINSTALL) != 0) javax.swing.JOptionPane.showMessageDialog( null, "The installation was not completed.", "Installation warning", javax.swing.JOptionPane.WARNING_MESSAGE); // We put the uninstaller putUninstaller(); // The end :-) listener.stopUnpack(); } catch (Exception err) { listener.stopUnpack(); listener.errorUnpack(err.toString()); } instances.remove(instances.indexOf(this)); }
| 3,239,536
|
public void parseFiles() throws Exception { // Parses the files Iterator iter = files.iterator(); while (iter.hasNext()) { // Create a temporary file for the parsed data // (Use the same directory so that renaming works later) ParsableFile pfile = (ParsableFile) iter.next(); // check whether the OS matches if (! OsConstraint.oneMatchesCurrentSystem (pfile.osConstraints)) { continue; } File file = new File(pfile.path); File parsedFile = File.createTempFile("izpp", null, file.getParentFile()); // Parses the file // (Use buffering because substitutor processes byte at a time) FileInputStream inFile = new FileInputStream(file); BufferedInputStream in = new BufferedInputStream(inFile, 5120); FileOutputStream outFile = new FileOutputStream(parsedFile); BufferedOutputStream out = new BufferedOutputStream(outFile, 5120); vs.substitute(in, out, pfile.type, pfile.encoding); in.close(); out.close(); // Replace the original file with the parsed one file.delete(); if (!parsedFile.renameTo(file)) throw new IOException ("Could not rename file " + parsedFile + " to " + file); } }
|
public void parseFiles() throws Exception { // Parses the files Iterator iter = files.iterator(); while (iter.hasNext()) { // Create a temporary file for the parsed data // (Use the same directory so that renaming works later) ParsableFile pfile = (ParsableFile) iter.next(); // check whether the OS matches if (!OsConstraint.oneMatchesCurrentSystem(pfile.osConstraints)) { continue; } File file = new File(pfile.path); File parsedFile = File.createTempFile("izpp", null, file.getParentFile()); // Parses the file // (Use buffering because substitutor processes byte at a time) FileInputStream inFile = new FileInputStream(file); BufferedInputStream in = new BufferedInputStream(inFile, 5120); FileOutputStream outFile = new FileOutputStream(parsedFile); BufferedOutputStream out = new BufferedOutputStream(outFile, 5120); vs.substitute(in, out, pfile.type, pfile.encoding); in.close(); out.close(); // Replace the original file with the parsed one file.delete(); if (!parsedFile.renameTo(file)) throw new IOException ("Could not rename file " + parsedFile + " to " + file); } }
| 3,239,537
|
public void parseFiles() throws Exception { // Parses the files Iterator iter = files.iterator(); while (iter.hasNext()) { // Create a temporary file for the parsed data // (Use the same directory so that renaming works later) ParsableFile pfile = (ParsableFile) iter.next(); // check whether the OS matches if (! OsConstraint.oneMatchesCurrentSystem (pfile.osConstraints)) { continue; } File file = new File(pfile.path); File parsedFile = File.createTempFile("izpp", null, file.getParentFile()); // Parses the file // (Use buffering because substitutor processes byte at a time) FileInputStream inFile = new FileInputStream(file); BufferedInputStream in = new BufferedInputStream(inFile, 5120); FileOutputStream outFile = new FileOutputStream(parsedFile); BufferedOutputStream out = new BufferedOutputStream(outFile, 5120); vs.substitute(in, out, pfile.type, pfile.encoding); in.close(); out.close(); // Replace the original file with the parsed one file.delete(); if (!parsedFile.renameTo(file)) throw new IOException ("Could not rename file " + parsedFile + " to " + file); } }
|
public void parseFiles() throws Exception { // Parses the files Iterator iter = files.iterator(); while (iter.hasNext()) { // Create a temporary file for the parsed data // (Use the same directory so that renaming works later) ParsableFile pfile = (ParsableFile) iter.next(); // check whether the OS matches if (! OsConstraint.oneMatchesCurrentSystem (pfile.osConstraints)) { continue; } File file = new File(pfile.path); File parsedFile = File.createTempFile("izpp", null, file.getParentFile()); // Parses the file // (Use buffering because substitutor processes byte at a time) FileInputStream inFile = new FileInputStream(file); BufferedInputStream in = new BufferedInputStream(inFile, 5120); FileOutputStream outFile = new FileOutputStream(parsedFile); BufferedOutputStream out = new BufferedOutputStream(outFile, 5120); vs.substitute(in, out, pfile.type, pfile.encoding); in.close(); out.close(); // Replace the original file with the parsed one file.delete(); if (!parsedFile.renameTo(file)) throw new IOException ("Could not rename file " + parsedFile + " to " + file); } }
| 3,239,538
|
public void parseFiles() throws Exception { // Parses the files Iterator iter = files.iterator(); while (iter.hasNext()) { // Create a temporary file for the parsed data // (Use the same directory so that renaming works later) ParsableFile pfile = (ParsableFile) iter.next(); // check whether the OS matches if (! OsConstraint.oneMatchesCurrentSystem (pfile.osConstraints)) { continue; } File file = new File(pfile.path); File parsedFile = File.createTempFile("izpp", null, file.getParentFile()); // Parses the file // (Use buffering because substitutor processes byte at a time) FileInputStream inFile = new FileInputStream(file); BufferedInputStream in = new BufferedInputStream(inFile, 5120); FileOutputStream outFile = new FileOutputStream(parsedFile); BufferedOutputStream out = new BufferedOutputStream(outFile, 5120); vs.substitute(in, out, pfile.type, pfile.encoding); in.close(); out.close(); // Replace the original file with the parsed one file.delete(); if (!parsedFile.renameTo(file)) throw new IOException ("Could not rename file " + parsedFile + " to " + file); } }
|
public void parseFiles() throws Exception { // Parses the files Iterator iter = files.iterator(); while (iter.hasNext()) { // Create a temporary file for the parsed data // (Use the same directory so that renaming works later) ParsableFile pfile = (ParsableFile) iter.next(); // check whether the OS matches if (! OsConstraint.oneMatchesCurrentSystem (pfile.osConstraints)) { continue; } File file = new File(pfile.path); File parsedFile = File.createTempFile("izpp", null, file.getParentFile()); // Parses the file // (Use buffering because substitutor processes byte at a time) FileInputStream inFile = new FileInputStream(file); BufferedInputStream in = new BufferedInputStream(inFile, 5120); FileOutputStream outFile = new FileOutputStream(parsedFile); BufferedOutputStream out = new BufferedOutputStream(outFile, 5120); vs.substitute(in, out, pfile.type, pfile.encoding); in.close(); out.close(); // Replace the original file with the parsed one file.delete(); if (!parsedFile.renameTo(file)) throw new IOException ("Could not rename file " + parsedFile + " to " + file); } }
| 3,239,539
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.